From adf2369b7da923469977cb0ebbb1b5e4362a201e Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Mon, 17 Oct 2022 08:59:51 -0700 Subject: [PATCH] Persist keycloak data --- server/config/keycloak/.env | 1 + server/config/keycloak/docker-compose.yml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/server/config/keycloak/.env b/server/config/keycloak/.env index 4e6a700..f14cd56 100644 --- a/server/config/keycloak/.env +++ b/server/config/keycloak/.env @@ -1,5 +1,6 @@ KEYCLOAK_ADMIN="jafner" KEYCLOAK_ADMIN_PASSWORD="iEKfrgdTLfbdqtMkH&FMrL3#t8^qfy%eSY5G94tfnUdQB3G!%CUaoFJuhCUN" +KEYCLOAK_DATA="/home/joey/data/keycloak/data" SECRET="ry6CUSs3m5vVkKcdKmCBFkxxbWNQqak5SzNo7Vx2gZDakcycyXoGa2u93BA7" PROVIDER_URI="https://keycloak.jafner.net/realms/Jafner.net/.well-known/openid-configuration" diff --git a/server/config/keycloak/docker-compose.yml b/server/config/keycloak/docker-compose.yml index 1b38ed5..cf3d2c2 100644 --- a/server/config/keycloak/docker-compose.yml +++ b/server/config/keycloak/docker-compose.yml @@ -12,6 +12,8 @@ services: loki-retries: "1" loki-timeout: "2s" keep-file: "true" + volumes: + - $KEYCLOAK_DATA:/opt/keycloak/data networks: keycloak: web: