diff --git a/main/services/backend/services/keycloak/compose.base.yaml b/main/services/backend/services/keycloak/compose.base.yaml index 59c0984e..8e6cadff 100644 --- a/main/services/backend/services/keycloak/compose.base.yaml +++ b/main/services/backend/services/keycloak/compose.base.yaml @@ -1,7 +1,7 @@ services: keycloak: - image: quay.io/keycloak/keycloak:25.0 - command: start-dev --import-realm --http-port=80 + image: quay.io/keycloak/keycloak:26.0 + command: start-dev --import-realm --health-enabled=true --http-port=80 env_file: ./config/.env volumes: - ./healthcheck/healthcheck.sh:/healthcheck.sh diff --git a/main/services/backend/services/keycloak/healthcheck/healthcheck.sh b/main/services/backend/services/keycloak/healthcheck/healthcheck.sh index c40baf18..b66a8a59 100644 --- a/main/services/backend/services/keycloak/healthcheck/healthcheck.sh +++ b/main/services/backend/services/keycloak/healthcheck/healthcheck.sh @@ -4,7 +4,7 @@ if ! exec 3<>/dev/tcp/localhost/9000; then exit 1 fi -printf "GET /health/ready HTTP/1.1\r\nHost: localhostConnection: close\r\n\r\n" >&3 +printf "GET /health/ready HTTP/1.1\r\nHost: localhost\r\nConnection: close\r\n\r\n" >&3 timeout --preserve-status 5 grep -m 1 "UP" <&3 exit_status=$? exec 3>&-