#113 Save progress in commented block, fallback to working dev config

This commit is contained in:
Joey Hafner 2024-01-04 11:58:13 -08:00
parent 5c28692647
commit 1bf9173727

View File

@ -1,21 +1,42 @@
version: '3' version: '3'
services: 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: keycloak:
#image: quay.io/keycloak/keycloak:19.0 image: quay.io/keycloak/keycloak:19.0
build:
dockerfile: Dockerfile
context: .
container_name: keycloak_keycloak container_name: keycloak_keycloak
volumes: volumes:
- $KEYCLOAK_DATA/import:/opt/keycloak/data/import - $KEYCLOAK_DATA:/opt/keycloak/data
networks: networks:
web: web:
aliases: aliases:
- keycloak - keycloak
keycloak: keycloak:
restart: "no" 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: env_file:
- keycloak.env - keycloak.env
- keycloak_secrets.env - keycloak_secrets.env