Dockerized app

This commit is contained in:
Antoni Nuñez Romeu
2026-07-22 12:59:11 +02:00
parent 817ffac049
commit 4c41b501e5
5 changed files with 71 additions and 0 deletions
+18
View File
@@ -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: