Add proper healthcheck to unbound telemetry + add depends_on
This commit is contained in:
parent
63373124e7
commit
416a0ddc86
@ -33,6 +33,9 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 127.0.0.1:84:3000
|
- 127.0.0.1:84:3000
|
||||||
restart: always
|
restart: always
|
||||||
|
depends_on:
|
||||||
|
- postgres
|
||||||
|
- redis
|
||||||
|
|
||||||
prometheus:
|
prometheus:
|
||||||
image: prom/prometheus:latest
|
image: prom/prometheus:latest
|
||||||
@ -55,3 +58,8 @@ services:
|
|||||||
- /data/remote-control.sock
|
- /data/remote-control.sock
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/unbound-telemetry:/data
|
- ./data/unbound-telemetry:/data
|
||||||
|
healthcheck:
|
||||||
|
test: curl --silent --fail http://127.0.0.1:9167/healthcheck || exit 1
|
||||||
|
interval: 10s
|
||||||
|
timeout: 1s
|
||||||
|
retries: 5
|
||||||
|
Reference in New Issue
Block a user