From 1bf9173727a88dbf6a5b7907e5e0f017e5ba3c2b Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Thu, 4 Jan 2024 11:58:13 -0800 Subject: [PATCH] #113 Save progress in commented block, fallback to working dev config --- fighter/config/keycloak/docker-compose.yml | 33 ++++++++++++++++++---- 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/fighter/config/keycloak/docker-compose.yml b/fighter/config/keycloak/docker-compose.yml index d429ae8..fc63c99 100644 --- a/fighter/config/keycloak/docker-compose.yml +++ b/fighter/config/keycloak/docker-compose.yml @@ -1,21 +1,42 @@ version: '3' services: +# keycloak-wip: +# #image: quay.io/keycloak/keycloak:19.0 +# build: +# dockerfile: Dockerfile +# context: . +# container_name: keycloak_keycloak +# volumes: +# - $KEYCLOAK_DATA/import:/opt/keycloak/data/import +# networks: +# web: +# aliases: +# - keycloak +# keycloak: +# restart: "no" +# command: start --db=postgres --features=token-exchange #--hostname-url=https://keycloak.jafner.net --proxy=passthrough +# env_file: +# - keycloak.env +# - keycloak_secrets.env +# labels: +# traefik.http.routers.keycloak.rule: Host(`keycloak.jafner.net`) +# traefik.http.routers.keycloak.tls.certresolver: lets-encrypt +# #traefik.http.routers.keycloak.middlewares: lan-only@file +# traefik.http.services.keycloak.loadbalancer.server.port: 8080 + keycloak: - #image: quay.io/keycloak/keycloak:19.0 - build: - dockerfile: Dockerfile - context: . + image: quay.io/keycloak/keycloak:19.0 container_name: keycloak_keycloak volumes: - - $KEYCLOAK_DATA/import:/opt/keycloak/data/import + - $KEYCLOAK_DATA:/opt/keycloak/data networks: web: aliases: - keycloak keycloak: restart: "no" - command: start --db=postgres --features=token-exchange --db-username=${KC_DB_USERNAME} --db-password=${KC_DB_PASSWORD} #--hostname-url=https://keycloak.jafner.net --proxy=passthrough + command: start-dev --hostname-url=https://keycloak.jafner.net --proxy=passthrough env_file: - keycloak.env - keycloak_secrets.env