compose: add healthcheck

This commit is contained in:
surtur 2022-09-09 11:33:57 +02:00
parent a73f1e8ea7
commit d1d55e4645
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -22,6 +22,10 @@ services:
- GF_ANALYTICS_REPORTING_ENABLED=false
- GF_SECURITY_ADMIN_PASSWORD=$GF_ADMIN_PASSWORD
- GF_ALLOWED_ORIGINS="https://*.dotya.ml"
healthcheck:
test: "/usr/bin/wget -q -Y off http://localhost:3000/api/health -O /dev/null > /dev/null 2>&1"
interval: 10s
retries: 20
volumes:
grafana_data: