keyloack backchannel communicate in bff architect

how i can update keyloack from 24 to 26 , maybe KC_HOSTNAME_URL not avaiable in version 26
keycloak:
container_name: lamapuz-bff.auth
image: quay.io/keycloak/keycloak:24.0.0
command:
- start-dev
- --import-realm
- --hostname-debug=true
ports:
- 8080:8080
volumes:
- ./keycloak/import/:/opt/keycloak/data/import/
environment:
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://postgres-keycloak:5432/keycloak
KC_DB_SCHEMA: public
KC_DB_USERNAME: keycloak
KC_DB_PASSWORD: secret
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_ADMIN_PASSWORD}
KC_HTTP_PORT: 8080
KC_HOSTNAME_URL: http://llamasad:7080/auth
KC_HOSTNAME_ADMIN_URL: http://llamasad:7080/auth
KC_HOSTNAME_STRICT_HTTPS: false
KC_HOSTNAME_STRICT: false
KC_HOSTNAME_STRICT_BACKCHANNEL: true
KC_HOSTNAME_DEBUG: true
KC_HTTP_RELATIVE_PATH: /auth/
KC_HTTP_ENABLED: true
KC_HEALTH_ENABLED: true
KC_METRICS_ENABLED: true
KC_LOG_LEVEL: DEBUG
extra_hosts:
- "host.docker.internal:host-gateway"
- "llamasad:host-gateway"
depends_on:
postgres-keycloak:
condition: service_healthy
healthcheck:
test: ['CMD-SHELL', '[ -f /tmp/HealthCheck.java ] || echo "public class HealthCheck { public static void main(String[] args) throws java.lang.Throwable { System.exit(java.net.HttpURLConnection.HTTP_OK == ((java.net.HttpURLConnection)new java.net.URL(args[0]).openConnection()).getResponseCode() ? 0 : 1); } }" > /tmp/HealthCheck.java && java /tmp/HealthCheck.java http://localhost:8080/auth/health/live']
interval: 5s
timeout: 5s
retries: 20
keycloak:
container_name: lamapuz-bff.auth
image: quay.io/keycloak/keycloak:24.0.0
command:
- start-dev
- --import-realm
- --hostname-debug=true
ports:
- 8080:8080
volumes:
- ./keycloak/import/:/opt/keycloak/data/import/
environment:
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://postgres-keycloak:5432/keycloak
KC_DB_SCHEMA: public
KC_DB_USERNAME: keycloak
KC_DB_PASSWORD: secret
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_ADMIN_PASSWORD}
KC_HTTP_PORT: 8080
KC_HOSTNAME_URL: http://llamasad:7080/auth
KC_HOSTNAME_ADMIN_URL: http://llamasad:7080/auth
KC_HOSTNAME_STRICT_HTTPS: false
KC_HOSTNAME_STRICT: false
KC_HOSTNAME_STRICT_BACKCHANNEL: true
KC_HOSTNAME_DEBUG: true
KC_HTTP_RELATIVE_PATH: /auth/
KC_HTTP_ENABLED: true
KC_HEALTH_ENABLED: true
KC_METRICS_ENABLED: true
KC_LOG_LEVEL: DEBUG
extra_hosts:
- "host.docker.internal:host-gateway"
- "llamasad:host-gateway"
depends_on:
postgres-keycloak:
condition: service_healthy
healthcheck:
test: ['CMD-SHELL', '[ -f /tmp/HealthCheck.java ] || echo "public class HealthCheck { public static void main(String[] args) throws java.lang.Throwable { System.exit(java.net.HttpURLConnection.HTTP_OK == ((java.net.HttpURLConnection)new java.net.URL(args[0]).openConnection()).getResponseCode() ? 0 : 1); } }" > /tmp/HealthCheck.java && java /tmp/HealthCheck.java http://localhost:8080/auth/health/live']
interval: 5s
timeout: 5s
retries: 20
1 Reply
JavaBot
JavaBot4w ago
This post has been reserved for your question.
Hey @llamasad! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here. 💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.

Did you find this page helpful?