From 552faa0a1697489aa1ee9ff3a86a49bc9424b684 Mon Sep 17 00:00:00 2001 From: xbgmsharp Date: Sat, 28 Jan 2023 21:47:05 +0100 Subject: [PATCH] Add docker healthy check for Grafana --- docker-compose.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 96413e8..36a5c13 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -59,6 +59,12 @@ services: logging: options: max-size: 10m + healthcheck: + test: ["CMD-SHELL", "sh -c 'curl --fail http://localhost:3000/healthz || exit 1'"] + interval: 60s + timeout: 10s + retries: 5 + start_period: 100s volumes: data: {}