Compare commits
11 Commits
5.1.0+20.0
...
master
Author | SHA1 | Date |
---|---|---|
3wc | b02db66093 | |
3wc | a4ce30cc5c | |
3wc | e7360c2a16 | |
3wc | 5b83f487ec | |
3wc | 3d42a26b9e | |
knoflook | 6aac16ebd6 | |
Cassowary | a5aae68446 | |
3wc | 82f6ad5d52 | |
decentral1se | 04b584ab4f | |
3wc | d2b9fffc46 | |
3wc | b682264613 |
|
@ -8,6 +8,11 @@ LETS_ENCRYPT_ENV=production
|
|||
ADMIN_USERNAME=admin
|
||||
WELCOME_THEME=keycloak
|
||||
|
||||
COMPOSE_FILE="compose.yml"
|
||||
|
||||
SECRET_DB_ROOT_PASSWORD_VERSION=v1
|
||||
SECRET_DB_PASSWORD_VERSION=v1
|
||||
SECRET_ADMIN_PASSWORD_VERSION=v1
|
||||
|
||||
# Enable persistent theme volume, if you want to apply a custom theme
|
||||
#COMPOSE_FILE="$COMPOSE_FILE:compose.theme.yml"
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
volumes:
|
||||
- "themes:/opt/keycloak/themes"
|
||||
|
||||
volumes:
|
||||
themes:
|
24
compose.yml
24
compose.yml
|
@ -3,7 +3,7 @@ version: "3.8"
|
|||
|
||||
services:
|
||||
app:
|
||||
image: "keycloak/keycloak:20.0.3"
|
||||
image: "keycloak/keycloak:23.0.6"
|
||||
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:
|
||||
|
@ -21,14 +21,16 @@ services:
|
|||
- KC_SPI_CONNECTIONS_JPA_LEGACY_MIGRATION_STRATEGY=update
|
||||
- KEYCLOAK_ADMIN=${ADMIN_USERNAME}
|
||||
- KEYCLOAK_WELCOME_THEME=${WELCOME_THEME}
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8080"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 10
|
||||
start_period: 1m
|
||||
# NOTE(3wc): disabled due to missing curl binary, see
|
||||
# https://git.coopcloud.tech/coop-cloud/keycloak/issues/15
|
||||
# healthcheck:
|
||||
# test: ["CMD", "curl", "-f", "http://localhost:8080"]
|
||||
# interval: 30s
|
||||
# timeout: 10s
|
||||
# retries: 10
|
||||
# start_period: 1m
|
||||
volumes:
|
||||
- "themes:/opt/keycloak/themes"
|
||||
- "providers:/opt/keycloak/providers"
|
||||
depends_on:
|
||||
- mariadb
|
||||
deploy:
|
||||
|
@ -44,10 +46,10 @@ services:
|
|||
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
|
||||
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
|
||||
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
||||
- "coop-cloud.${STACK_NAME}.version=5.1.0+20.0.3"
|
||||
- "coop-cloud.${STACK_NAME}.version=8.0.1+23.0.6"
|
||||
|
||||
db:
|
||||
image: "mariadb:10.6"
|
||||
image: "mariadb:11.2"
|
||||
environment:
|
||||
- MYSQL_DATABASE=keycloak
|
||||
- MYSQL_USER=keycloak
|
||||
|
@ -88,4 +90,4 @@ secrets:
|
|||
|
||||
volumes:
|
||||
mariadb:
|
||||
themes:
|
||||
providers:
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
Healthchecks are disabled, see
|
||||
https://git.coopcloud.tech/coop-cloud/keycloak/issues/15
|
|
@ -0,0 +1,5 @@
|
|||
A persistent volume for themes is now optional, and not enabled by default.
|
||||
|
||||
If you are using a custom theme, consult the recipe `.env.sample` to see the new
|
||||
variables you need to add. You can use `abra app check ...` to verify that
|
||||
they've been added correctly.
|
Loading…
Reference in New Issue