Update Keycloak version to 25.0.1 and add providers volume

This commit is contained in:
Christian Galo 2024-07-22 02:23:42 +00:00
parent 743eee88cd
commit adba4a6dee
2 changed files with 7 additions and 2 deletions

View File

@ -2,7 +2,6 @@
Wiki Cafe's configuration for a Keycloak deployment. Originally slimmed down from an `abra` [recipe](https://git.coopcloud.tech/coop-cloud/keycloak) by [Co-op Cloud](https://coopcloud.tech/).
## Deploying the app with Docker Swarm
Set the environment variables from the .env file during the shell session.

View File

@ -1,6 +1,6 @@
services:
app:
image: "keycloak/keycloak:22.0.3"
image: "keycloak/keycloak:25.0.1"
entrypoint: >
bash -c "KEYCLOAK_ADMIN_PASSWORD=\"$$(cat /run/secrets/admin_password)\" KC_DB_PASSWORD=\"$$(cat /run/secrets/db_password)\" /opt/keycloak/bin/kc.sh start"
networks:
@ -17,11 +17,13 @@ services:
- KC_PROXY=edge
- KEYCLOAK_ADMIN=${ADMIN_USERNAME}
- KEYCLOAK_WELCOME_THEME=${WELCOME_THEME}
- KC_FEATURES
# healthcheck:
# https://www.keycloak.org/server/health
# Use external health checks
volumes:
- "themes:/opt/keycloak/themes"
- "providers:/opt/keycloak/providers"
depends_on:
- mariadb
deploy:
@ -37,6 +39,9 @@ services:
- "traefik.http.routers.keycloak.middlewares=keycloak-redirect"
- "traefik.http.middlewares.keycloak-redirect.headers.SSLForceHost=true"
- "traefik.http.middlewares.keycloak-redirect.headers.SSLHost=${DOMAIN}"
- "caddy=${DOMAIN}"
- "caddy.reverse_proxy={{upstreams 8080}}"
- "caddy.tls.on_demand="
db:
image: "mariadb:10.11"
@ -81,3 +86,4 @@ secrets:
volumes:
mariadb:
themes:
providers: