From d1d55e46456eb4c56d804d4d921376034714d749 Mon Sep 17 00:00:00 2001 From: surtur Date: Fri, 9 Sep 2022 11:33:57 +0200 Subject: [PATCH] compose: add healthcheck --- etc/grafana/docker-compose.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etc/grafana/docker-compose.yml b/etc/grafana/docker-compose.yml index 89e97df..cb203e0 100644 --- a/etc/grafana/docker-compose.yml +++ b/etc/grafana/docker-compose.yml @@ -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: