From 6bcb2872c302d5af43b4e585518602812528a606 Mon Sep 17 00:00:00 2001 From: Cedric Ziel Date: Fri, 10 Apr 2020 00:40:30 +0200 Subject: [PATCH] Introduce docker-compose healtcheck using X-INSTANA-SYNTHETIC --- docker-compose.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker-compose.yaml b/docker-compose.yaml index 0c0243d..649f8f2 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -65,6 +65,11 @@ services: - robot-shop depends_on: - mysql + healthcheck: + test: ["CMD", "curl", "-H", "X-INSTANA-SYNTHETIC: 1", "-f", "http://localhost/_health"] + interval: 1s + timeout: 10s + retries: 3 payment: build: context: payment