HajTex_living_with_keycloak/docker/compose/keycloakserver/compose.yaml

37 lines
873 B
YAML
Raw Permalink Normal View History

2024-12-30 02:50:43 +01:00
services:
keycloak:
image: quay.io/keycloak/keycloak:26.0
container_name: keycloakserver
hostname: keycloakserver
command: start
environment:
KC_PROXY_ADDRESS_FORWARDING: true
KC_HOSTNAME_STRICT: false
KC_HOSTNAME: ${KEYCLOAK_HOSTNAME}
KC_PROXY: edge
KC_HTTP_ENABLED: true
KC_HEALTH_ENABLED: true
KC_HTTP_RELATIVE_PATH: /sso
KC_PROXY_HEADERS: xforwarded
PROXY_ADDRESS_FORWARDING: true
KEYCLOAK_ADMIN: ${KEYCLOAK_ADMIN}
KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_ADMIN_PASSWORD}
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://keycloakpostgres/${POSTGRES_DB}
KC_DB_USERNAME: ${POSTGRES_USER}
KC_DB_PASSWORD: ${POSTGRES_PASSWORD}
ports:
- 8080:8080
restart: always
networks:
- keycloak-network
networks:
keycloak-network:
external: true