docker: healthcheck

This commit is contained in:
2025-04-19 20:29:40 -03:00
parent c1d88b586a
commit e13db8d469
2 changed files with 10 additions and 3 deletions

View File

@@ -19,6 +19,14 @@ services:
dockerfile: Dockerfile
ports:
- "8000:8000"
healthcheck:
test: ["CMD", "curl", "-f", "http://0.0.0.0:8000/"]
interval: 5m
timeout: 3s
retries: 3
restart: on-failure
volumes:
- static_volume:/app/gestaoRaul/static
environment: