Updated keycloak

This commit is contained in:
Kevin Veen-Birkenbach 2025-01-20 18:26:51 +01:00
parent 209bb7c504
commit 77f4571316
3 changed files with 9 additions and 5 deletions

View File

@ -3,4 +3,5 @@
## More Information ## More Information
- https://www.keycloak.org/ - https://www.keycloak.org/
- https://github.com/keycloak/keycloak - https://github.com/keycloak/keycloak
- https://en.wikipedia.org/wiki/Keycloak - https://en.wikipedia.org/wiki/Keycloak
- https://www.keycloak.org/server/containers

View File

@ -6,7 +6,7 @@ services:
{% include 'templates/docker/services/' + database_type + '.yml.j2' %} {% include 'templates/docker/services/' + database_type + '.yml.j2' %}
keycloak: keycloak:
image: quay.io/keycloak/keycloak:23.0.6 image: quay.io/keycloak/keycloak:latest
command: start command: start
environment: environment:
KC_HOSTNAME: {{domain}} KC_HOSTNAME: {{domain}}
@ -18,9 +18,9 @@ services:
KEYCLOAK_ADMIN: ${KEYCLOAK_ADMIN} KEYCLOAK_ADMIN: ${KEYCLOAK_ADMIN}
KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_ADMIN_PASSWORD} KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_ADMIN_PASSWORD}
KC_DB: postgres KC_DB: postgres
KC_DB_URL: jdbc:postgresql://postgres/${POSTGRES_DB} KC_DB_URL: jdbc:postgresql://{{database_host}}/{{database_name}}
KC_DB_USERNAME: ${POSTGRES_USER} KC_DB_USERNAME: {{database_username}}
KC_DB_PASSWORD: ${POSTGRES_PASSWORD} KC_DB_PASSWORD: {{database_password}}
ports: ports:
- "127.0.0.1:{{http_port}}:8080" - "127.0.0.1:{{http_port}}:8080"
restart: always restart: always

View File

@ -0,0 +1,3 @@
docker_compose_project_name: "keycloak"
database_type: "postgres"
database_password: "{{keycloak_database_password}}"