From 585b12ca8eaec2af73f7fe15286f2f8c4198623f Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Thu, 4 Jan 2024 15:25:44 -0800 Subject: [PATCH] #117 Init healthcheck for Keycloak --- fighter/config/keycloak/docker-compose.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fighter/config/keycloak/docker-compose.yml b/fighter/config/keycloak/docker-compose.yml index 05f922b..ddcc42a 100644 --- a/fighter/config/keycloak/docker-compose.yml +++ b/fighter/config/keycloak/docker-compose.yml @@ -36,6 +36,12 @@ services: - keycloak restart: "no" command: start-dev --hostname-url=https://keycloak.jafner.net --proxy=passthrough + healthcheck: + test: ["CMD", "curl", "-f", "http://keycloak"] + interval: 2m + timeout: 10s + retries: 3 + start_period: 10s env_file: - keycloak.env - keycloak_secrets.env