From 16dfc313f06026de781747c2b39d9e9204d3b52d Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Mon, 22 Jun 2020 17:35:14 +0200 Subject: [PATCH] Add health check command --- compose.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/compose.yml b/compose.yml index 13b90c4..bae69ea 100644 --- a/compose.yml +++ b/compose.yml @@ -19,6 +19,12 @@ services: - KEYCLOAK_PASSWORD_FILE=/run/secrets/admin_passwd - KEYCLOAK_USER="${ADMIN_USERNAME}" - PROXY_ADDRESS_FORWARDING=true + healthcheck: + test: ["CMD", "curl", "http://localhost:8080"] + interval: 30s + timeout: 10s + retries: 10 + start_period: 1m depends_on: - mariadb deploy: