Compare commits

...

21 Commits

Author SHA1 Message Date
3wc
bd2ec2cd9d chore: publish 10.3.0+26.2.1 release 2025-04-23 18:38:24 +02:00
3wc
7af65faa5a chore: publish 10.2.1+26.1.2 release 2025-02-26 12:46:39 -05:00
3wc
636e81002d Add missing KC_HTTP_ENABLED 2025-02-26 12:46:02 -05:00
3wc
d3c9fc4784 chore: publish 10.2.0+26.1.2 release 2025-02-26 12:27:10 -05:00
41877e765a chore: publish 10.1.1+26.0.1 release 2025-01-28 17:43:08 +01:00
c08753a3ff fix: db backup labels 2025-01-28 17:41:20 +01:00
1af583a429 Update .drone.yml 2025-01-08 10:09:13 -08:00
3wc
ef9fbd5436 Add KC_PROXY_HEADERS to make self-service account URL work 2024-11-30 18:50:30 -05:00
3wc
1ee9f5e5d7 chore: publish 10.1.0+26.0.1 release 2024-10-23 14:23:23 -04:00
3wc
88b9c3df1d Add caddy support 2024-10-23 14:22:58 -04:00
9050321e50 chore: publish 10.0.1+26.0.1 release 2024-10-23 13:51:04 -04:00
d63bb8bc54 fix login http form 2024-10-23 13:49:23 -04:00
6053df415e chore: publish 10.0.0+26.0.1 release 2024-10-23 13:30:11 -04:00
3wc
ab009bae84 chore: publish 9.0.0+25.0.6 release 2024-10-02 13:30:05 -04:00
3wc
b02db66093 chore: publish 8.0.1+23.0.6 release 2024-02-08 14:37:28 -03:00
3wc
a4ce30cc5c chore: publish 8.0.0+23.0.0 release 2023-11-27 12:11:46 +00:00
3wc
e7360c2a16 chore: publish 7.2.0+22.0.5 release 2023-11-22 15:27:32 +00:00
3wc
5b83f487ec Fix compose file version 2023-11-22 15:25:43 +00:00
3wc
3d42a26b9e Make persistent theme volume optional 2023-11-22 15:23:27 +00:00
6aac16ebd6 chore: publish 7.1.0+22.0.5 release 2023-11-22 16:15:42 +01:00
a5aae68446 chore: publish 7.0.2+22.0.5 release 2023-11-09 09:47:55 -08:00
5 changed files with 34 additions and 9 deletions

View File

@ -35,7 +35,7 @@ steps:
from_secret: drone_abra-bot_token
fork: true
repositories:
- coop-cloud/auto-recipes-catalogue-json
- toolshed/auto-recipes-catalogue-json
trigger:
event: tag

View File

@ -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"

10
compose.theme.yml Normal file
View File

@ -0,0 +1,10 @@
---
version: "3.8"
services:
app:
volumes:
- "themes:/opt/keycloak/themes"
volumes:
themes:

View File

@ -3,7 +3,7 @@ version: "3.8"
services:
app:
image: "keycloak/keycloak:22.0.4"
image: "keycloak/keycloak:26.2.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:
@ -16,11 +16,13 @@ services:
- KC_DB=mariadb
- KC_DB_URL_DATABASE=keycloak
- KC_DB_URL_HOST=db
- KC_HOSTNAME=${DOMAIN}
- KC_HOSTNAME=https://${DOMAIN}
- KC_PROXY=edge
- KC_SPI_CONNECTIONS_JPA_LEGACY_MIGRATION_STRATEGY=update
- KEYCLOAK_ADMIN=${ADMIN_USERNAME}
- KEYCLOAK_WELCOME_THEME=${WELCOME_THEME}
- KC_PROXY_HEADERS=xforwarded
- KC_HTTP_ENABLED=true
# NOTE(3wc): disabled due to missing curl binary, see
# https://git.coopcloud.tech/coop-cloud/keycloak/issues/15
# healthcheck:
@ -30,7 +32,7 @@ services:
# retries: 10
# start_period: 1m
volumes:
- "themes:/opt/keycloak/themes"
- "providers:/opt/keycloak/providers"
depends_on:
- mariadb
deploy:
@ -46,10 +48,13 @@ 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=7.0.1+22.0.4"
- "caddy=${DOMAIN}"
- "caddy.reverse_proxy={{upstreams 8080}}"
- "caddy.tls.on_demand="
- "coop-cloud.${STACK_NAME}.version=10.3.0+26.2.1"
db:
image: "mariadb:10.11"
image: "mariadb:11.7"
environment:
- MYSQL_DATABASE=keycloak
- MYSQL_USER=keycloak
@ -67,10 +72,10 @@ services:
backupbot.backup: "true"
backupbot.backup.path: "/tmp/dump.sql.gz"
backupbot.backup.post-hook: "rm -f /tmp/dump.sql.gz"
backupbot.backup.pre-hook: "sh -c 'mysqldump -u root -p\"$$(cat /run/secrets/db_root_password)\" keycloak | gzip > /tmp/dump.sql.gz'"
backupbot.backup.pre-hook: "sh -c 'mariadb-dump -u root -p\"$$(cat /run/secrets/db_root_password)\" keycloak | gzip > /tmp/dump.sql.gz'"
backupbot.restore.pre-hook: "sh -c 'cd /tmp && gzip -d dump.sql.gz'"
backupbot.restore: "true"
backupbot.restore.post-hook: "sh -c 'mysql -u root -p\"$$(cat /run/secrets/db_root_password)\" keycloak < /tmp/dump.sql && rm -f /tmp/dump.sql'"
backupbot.restore.post-hook: "sh -c 'mariadb -u root -p\"$$(cat /run/secrets/db_root_password)\" keycloak < /tmp/dump.sql && rm -f /tmp/dump.sql'"
networks:
internal:
@ -90,4 +95,4 @@ secrets:
volumes:
mariadb:
themes:
providers:

5
release/7.2.0+22.0.5 Normal file
View File

@ -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.