feat: add health check

This commit is contained in:
Elias Schneider
2024-11-24 18:53:32 +01:00
parent 9370292fe5
commit 058084ed64
3 changed files with 29 additions and 2 deletions

View File

@@ -6,4 +6,11 @@ services:
ports:
- 3000:80
volumes:
- "./data:/app/backend/data"
- "./data:/app/backend/data"
# Optional healthcheck
healthcheck:
test: "curl -f http://localhost/health"
interval: 1m30s
timeout: 5s
retries: 2
start_period: 10s