Add healthcheck
This commit is contained in:
+8
-1
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user