From 92dbaf254f25e29d758067dc2fa50af370435b2e Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Mon, 22 Jun 2020 17:33:29 +0200 Subject: [PATCH] Add health check and configure update order --- compose.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/compose.yml b/compose.yml index a3a74c9..c605739 100644 --- a/compose.yml +++ b/compose.yml @@ -21,9 +21,16 @@ services: - PROXY_ADDRESS_FORWARDING=true depends_on: - mariadb + healthcheck: + test: ["CMD", "curl", "http://localhost:8080"] + interval: 30s + timeout: 10s + retries: 10 + start_period: 1m deploy: update_config: failure_action: rollback + order: start-first labels: - "traefik.enable=true" - "traefik.http.routers.keycloak.rule=Host(`id.autonomic.zone`)"