From 3731aba900194e28d05b543d093c7595162a22b4 Mon Sep 17 00:00:00 2001 From: Pranam KG <129073389+prangowda@users.noreply.github.com> Date: Tue, 15 Apr 2025 15:50:54 +0530 Subject: [PATCH] Update docker-compose.yml This update replaces the deprecated jboss/keycloak:11.0.3 image in the docker-compose.yml file with the newer and supported quay.io/keycloak/keycloak:21.1.1 image. The configuration has been updated to align with the requirements of the newer Keycloak versions. This includes: 1) Changing KEYCLOAK_USER and KEYCLOAK_PASSWORD to KEYCLOAK_ADMIN and KEYCLOAK_ADMIN_PASSWORD. 2) Adding the start --hostname keycloak command for compatibility with the new Keycloak startup process. 3) Ensuring the file remains functional for all other services. These updates ensure compatibility with the latest Keycloak releases and address the deprecation of the old image. --- docker-compose.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 4ce05af20c..102a620797 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -151,19 +151,18 @@ services: - '--config.file=/etc/alertmanager/config.yml' keycloak: - image: ${KEYCLOAK_IMAGE:-jboss/keycloak:11.0.3} + image: ${KEYCLOAK_IMAGE:-quay.io/keycloak/keycloak:21.1.1} container_name: keycloak hostname: keycloak ports: ['${KEYCLOAK_HOST_HTTP_PORT:-8080}:8080', '${KEYCLOAK_HOST_HTTPS_PORT:-8443}:8443'] volumes: - ./docker/keycloak:/docker:Z environment: - - KEYCLOAK_USER=admin - - KEYCLOAK_PASSWORD=keycloak + - KEYCLOAK_ADMIN=admin + - KEYCLOAK_ADMIN_PASSWORD=keycloak - KEYCLOAK_IMPORT=/docker/saml-demo-realm.json - - BIND=127.0.0.1 - scale: -1 - + command: start --hostname keycloak + haproxy: image: ${HAPROXY_IMAGE:-haproxy:2.3} container_name: haproxy