mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-01-22 07:03:21 +01:00
implemented docker compose for keycloak
This commit is contained in:
parent
6d62e65a20
commit
124e5df985
32
roles/docker-keycloak/templates/docker-compose.yml.j2
Normal file
32
roles/docker-keycloak/templates/docker-compose.yml.j2
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
version: '3.7'
|
||||||
|
|
||||||
|
services:
|
||||||
|
|
||||||
|
# include database container
|
||||||
|
{% include 'templates/docker/services/' + database_type + '.yml.j2' %}
|
||||||
|
|
||||||
|
keycloak:
|
||||||
|
image: quay.io/keycloak/keycloak:23.0.6
|
||||||
|
command: start
|
||||||
|
environment:
|
||||||
|
KC_HOSTNAME: {{domain}}
|
||||||
|
KC_HOSTNAME_PORT: {{http_port}}
|
||||||
|
KC_HOSTNAME_STRICT_BACKCHANNEL: false
|
||||||
|
KC_HTTP_ENABLED: true
|
||||||
|
KC_HOSTNAME_STRICT_HTTPS: false
|
||||||
|
KC_HEALTH_ENABLED: true
|
||||||
|
KEYCLOAK_ADMIN: ${KEYCLOAK_ADMIN}
|
||||||
|
KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_ADMIN_PASSWORD}
|
||||||
|
KC_DB: postgres
|
||||||
|
KC_DB_URL: jdbc:postgresql://postgres/${POSTGRES_DB}
|
||||||
|
KC_DB_USERNAME: ${POSTGRES_USER}
|
||||||
|
KC_DB_PASSWORD: ${POSTGRES_PASSWORD}
|
||||||
|
ports:
|
||||||
|
- "127.0.0.1:{{http_port}}:8080"
|
||||||
|
restart: always
|
||||||
|
{% 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' %}
|
Loading…
x
Reference in New Issue
Block a user