Add healthcheck

This commit is contained in:
2024-10-20 16:50:32 +11:00
parent 0c21de1a73
commit 15ae302fa7
+8 -1
View File
@@ -52,6 +52,12 @@ services:
limits: limits:
cpus: '0.9' cpus: '0.9'
memory: 5000M memory: 5000M
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/api/version"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
dayglo_detector: dayglo_detector:
container_name: dayglo_detector container_name: dayglo_detector
@@ -68,7 +74,8 @@ services:
FRIGATE_URL: 'http://frigate:5000' FRIGATE_URL: 'http://frigate:5000'
INTERESTED_ZONES: 'Door_Front' INTERESTED_ZONES: 'Door_Front'
depends_on: depends_on:
- frigate frigate:
condition: service_healthy
volumes: volumes:
frigate-config: frigate-config: