diff --git a/templates/compose/keycloak-with-postgres.yaml b/templates/compose/keycloak-with-postgres.yaml index a5cdd1646..2d5bb8f2b 100644 --- a/templates/compose/keycloak-with-postgres.yaml +++ b/templates/compose/keycloak-with-postgres.yaml @@ -12,16 +12,15 @@ services: environment: - PUID=1000 - PGID=1000 - - TZ=Europe/Berlin - - KEYCLOAK_ADMIN=${KEYCLOAK_ADMIN:-admin} - - KEYCLOAK_ADMIN_PASSWORD=${KEYCLOAK_ADMIN_PASSWORD:-password} + - TZ=${TIMEZONE:-UTC} + - KEYCLOAK_ADMIN=${SERVICE_USER_ADMIN} + - KEYCLOAK_ADMIN_PASSWORD=${SERVICE_PASSWORD_ADMIN} - KC_DB=postgres - KC_DB_USERNAME=${SERVICE_USER_DATABASE} - KC_DB_PASSWORD=${SERVICE_PASSWORD_64_DATABASE} - KC_DB_URL_PORT=5432 - KC_DB_URL=jdbc:postgresql://postgres/${POSTGRESQL_DATABASE:-keycloak} - KC_HOSTNAME=${SERVICE_FQDN_KEYCLOAK_8080} - - KC_ENABLE_HTTPS=false - KC_HTTP_ENABLED=true - KC_HEALTH_ENABLED=true - KC_DB_POOL_INITIAL_SIZE=${KEYCLOAK_DB_POOL_INITIAL_SIZE} @@ -37,7 +36,11 @@ services: postgres: condition: service_healthy healthcheck: - test: ["CMD-SHELL", "exec 3<>/dev/tcp/127.0.0.1/9000;echo -e 'GET /health/ready HTTP/1.1\r\nhost: http://localhost\r\nConnection: close\r\n\r\n' >&3;if [ $? -eq 0 ]; then echo 'Healthcheck Successful';exit 0;else echo 'Healthcheck Failed';exit 1;fi;"] + test: + [ + "CMD-SHELL", + "exec 3<>/dev/tcp/127.0.0.1/9000;echo -e 'GET /health/ready HTTP/1.1\r\nhost: http://localhost\r\nConnection: close\r\n\r\n' >&3;if [ $? -eq 0 ]; then echo 'Healthcheck Successful';exit 0;else echo 'Healthcheck Failed';exit 1;fi;", + ] interval: 5s timeout: 20s retries: 10 diff --git a/templates/compose/keycloak.yaml b/templates/compose/keycloak.yaml index 388d24d5b..ed141abd9 100644 --- a/templates/compose/keycloak.yaml +++ b/templates/compose/keycloak.yaml @@ -12,11 +12,10 @@ services: environment: - PUID=1000 - PGID=1000 - - TZ=Europe/Berlin - - KEYCLOAK_ADMIN=${KEYCLOAK_ADMIN:-admin} - - KEYCLOAK_ADMIN_PASSWORD=${KEYCLOAK_ADMIN_PASSWORD:-password} + - TZ=${TIMEZONE:-UTC} + - KEYCLOAK_ADMIN=${SERVICE_USER_ADMIN} + - KEYCLOAK_ADMIN_PASSWORD=${SERVICE_PASSWORD_ADMIN} - KC_HOSTNAME=${SERVICE_FQDN_KEYCLOAK_8080} - - KC_ENABLE_HTTPS=false - KC_HTTP_ENABLED=true - KC_HEALTH_ENABLED=true - KC_DB_POOL_INITIAL_SIZE=${KEYCLOAK_DB_POOL_INITIAL_SIZE} @@ -29,7 +28,11 @@ services: volumes: - keycloak-data:/opt/keycloak/data healthcheck: - test: ["CMD-SHELL", "exec 3<>/dev/tcp/127.0.0.1/9000;echo -e 'GET /health/ready HTTP/1.1\r\nhost: http://localhost\r\nConnection: close\r\n\r\n' >&3;if [ $? -eq 0 ]; then echo 'Healthcheck Successful';exit 0;else echo 'Healthcheck Failed';exit 1;fi;"] + test: + [ + "CMD-SHELL", + "exec 3<>/dev/tcp/127.0.0.1/9000;echo -e 'GET /health/ready HTTP/1.1\r\nhost: http://localhost\r\nConnection: close\r\n\r\n' >&3;if [ $? -eq 0 ]; then echo 'Healthcheck Successful';exit 0;else echo 'Healthcheck Failed';exit 1;fi;", + ] interval: 5s timeout: 20s retries: 10