Lägg till hälsokontroll för tjänsten i docker-compose

This commit is contained in:
2025-01-24 21:30:19 +01:00
parent e091da93e9
commit a58da5398c

View File

@@ -13,6 +13,11 @@ services:
- DEBUG=app
- AUTH_USERNAME=fredrik
- AUTH_PASSWORD=apa
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3044"]
interval: 1m30s
timeout: 10s
retries: 3
deploy:
labels:
- "traefik.enable=true"