Dockerized app
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
services:
|
||||
rss-bot:
|
||||
build: .
|
||||
container_name: discord-rss-bot
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- rss-data:/app/data
|
||||
healthcheck:
|
||||
test: ["CMD", "node", "-e", "fetch('http://localhost:8000/health').then(r=>{if(!r.ok)process.exit(1)}).catch(()=>process.exit(1))"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
|
||||
volumes:
|
||||
rss-data:
|
||||
Reference in New Issue
Block a user