Add healthcheck
This commit is contained in:
+8
-1
@@ -52,6 +52,12 @@ services:
|
||||
limits:
|
||||
cpus: '0.9'
|
||||
memory: 5000M
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:5000/api/version"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
start_period: 30s
|
||||
|
||||
dayglo_detector:
|
||||
container_name: dayglo_detector
|
||||
@@ -68,7 +74,8 @@ services:
|
||||
FRIGATE_URL: 'http://frigate:5000'
|
||||
INTERESTED_ZONES: 'Door_Front'
|
||||
depends_on:
|
||||
- frigate
|
||||
frigate:
|
||||
condition: service_healthy
|
||||
|
||||
volumes:
|
||||
frigate-config:
|
||||
|
||||
Reference in New Issue
Block a user