Add proper healthcheck to unbound telemetry + add depends_on

This commit is contained in:
BBaoVanC 2021-08-20 15:48:51 -05:00
parent 63373124e7
commit 416a0ddc86
1 changed files with 8 additions and 0 deletions

View File

@ -33,6 +33,9 @@ services:
ports:
- 127.0.0.1:84:3000
restart: always
depends_on:
- postgres
- redis
prometheus:
image: prom/prometheus:latest
@ -55,3 +58,8 @@ services:
- /data/remote-control.sock
volumes:
- ./data/unbound-telemetry:/data
healthcheck:
test: curl --silent --fail http://127.0.0.1:9167/healthcheck || exit 1
interval: 10s
timeout: 1s
retries: 5