2025-01-17 13:58:16 +01:00
|
|
|
services:
|
|
|
|
|
|
|
|
{% include 'templates/docker/services/' + database_type + '.yml.j2' %}
|
|
|
|
|
|
|
|
keycloak:
|
2025-01-20 19:37:43 +01:00
|
|
|
image: quay.io/keycloak/keycloak:{{keycloak_version}}
|
2025-01-17 13:58:16 +01:00
|
|
|
command: start
|
|
|
|
environment:
|
2025-01-20 19:37:43 +01:00
|
|
|
KC_HOSTNAME: {{domain}}
|
2025-01-20 19:50:17 +01:00
|
|
|
#KC_HOSTNAME_PORT: {{http_port}}
|
2025-01-20 19:37:43 +01:00
|
|
|
KC_HOSTNAME_STRICT_BACKCHANNEL: true
|
|
|
|
KC_HTTP_ENABLED: false
|
|
|
|
KC_HOSTNAME_STRICT_HTTPS: true
|
|
|
|
KC_HEALTH_ENABLED: true
|
2025-01-20 20:32:27 +01:00
|
|
|
KEYCLOAK_ADMIN: "{{keycloak_administrator_username}}"
|
|
|
|
KEYCLOAK_ADMIN_PASSWORD: "{{keycloak_administrator_password}}"
|
2025-01-20 19:37:43 +01:00
|
|
|
KC_DB: postgres
|
|
|
|
KC_DB_URL: jdbc:postgresql://{{database_host}}/{{database_name}}
|
|
|
|
KC_DB_USERNAME: {{database_username}}
|
|
|
|
KC_DB_PASSWORD: {{database_password}}
|
2025-01-17 13:58:16 +01:00
|
|
|
ports:
|
|
|
|
- "127.0.0.1:{{http_port}}:8080"
|
2025-01-20 19:37:43 +01:00
|
|
|
restart: {{docker_restart_policy}}
|
2025-01-17 13:58:16 +01:00
|
|
|
{% include 'templates/docker/container/depends-on-just-database.yml.j2' %}
|
|
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
|
|
|
|
|
|
|
{% include 'templates/docker/compose/volumes.yml.j2' %}
|
|
|
|
|
|
|
|
{% include 'templates/docker/compose/networks.yml.j2' %}
|