Updated compose file for better Docker integration

This commit is contained in:
Vítor Vieira 2025-11-28 20:21:57 +00:00
parent 4a08a64dc9
commit 13dcd1ff52

View file

@ -1,6 +1,8 @@
services: services:
bot: bot:
build: . build:
context: .
dockerfile: Containerfile
ports: ports:
- "3000:3000" - "3000:3000"
depends_on: depends_on:
@ -13,7 +15,7 @@ services:
- INTERVAL=${INTERVAL:-5000} - INTERVAL=${INTERVAL:-5000}
- THRESHOLD=${THRESHOLD:-0.01} - THRESHOLD=${THRESHOLD:-0.01}
healthcheck: healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/health"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "http://localhost:3000/health"]
interval: 30s interval: 30s
timeout: 10s timeout: 10s
retries: 3 retries: 3