#113 Remove old keycloak install, copy new install over
This commit is contained in:
parent
8f919a1deb
commit
01217134e2
@ -1,31 +1,6 @@
|
|||||||
version: '3'
|
version: '3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
keycloak:
|
|
||||||
image: quay.io/keycloak/keycloak:19.0
|
|
||||||
container_name: keycloak_keycloak
|
|
||||||
volumes:
|
|
||||||
- $KEYCLOAK_DATA:/opt/keycloak/data
|
|
||||||
networks:
|
|
||||||
web:
|
|
||||||
aliases:
|
|
||||||
- keycloak
|
|
||||||
restart: "no"
|
|
||||||
command: start-dev --hostname-url=https://keycloak.jafner.net --proxy=passthrough
|
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "curl", "-f", "http://0.0.0.0:8080"]
|
|
||||||
interval: 30s
|
|
||||||
timeout: 10s
|
|
||||||
retries: 3
|
|
||||||
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
|
|
||||||
|
|
||||||
forwardauth:
|
forwardauth:
|
||||||
image: mesosphere/traefik-forward-auth:3.1.0
|
image: mesosphere/traefik-forward-auth:3.1.0
|
||||||
container_name: keycloak_forwardauth
|
container_name: keycloak_forwardauth
|
||||||
@ -65,30 +40,33 @@ services:
|
|||||||
- "traefik.http.routers.forwardauth-privileged.rule=Path(`/_oauth`)"
|
- "traefik.http.routers.forwardauth-privileged.rule=Path(`/_oauth`)"
|
||||||
- "traefik.http.routers.forwardauth-privileged.tls.certresolver=lets-encrypt"
|
- "traefik.http.routers.forwardauth-privileged.tls.certresolver=lets-encrypt"
|
||||||
|
|
||||||
keycloak-wip:
|
keycloak:
|
||||||
image: quay.io/keycloak/keycloak:23.0
|
image: quay.io/keycloak/keycloak:23.0
|
||||||
container_name: keycloak_keycloak-wip
|
container_name: keycloak_keycloak
|
||||||
volumes:
|
|
||||||
- $KEYCLOAK_DATA/import:/opt/keycloak/data/import
|
|
||||||
networks:
|
networks:
|
||||||
keycloak:
|
keycloak:
|
||||||
aliases:
|
aliases:
|
||||||
- keycloak-wip
|
- keycloak
|
||||||
web:
|
web:
|
||||||
aliases:
|
aliases:
|
||||||
- keycloak-wip
|
- keycloak
|
||||||
restart: "no"
|
restart: "no"
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "exec 3<>/dev/tcp/127.0.0.1/8080;echo -e \"GET /health/ready HTTP/1.1\r\nhost: http://localhost\r\nConnection: close\r\n\r\n\" >&3;grep \"HTTP/1.1 200 OK\" <&3"]
|
||||||
|
interval: 20s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
command: start
|
command: start
|
||||||
env_file:
|
env_file:
|
||||||
- keycloak-wip.env
|
- keycloak.env
|
||||||
- keycloak-wip_secrets.env
|
- keycloak_secrets.env
|
||||||
labels:
|
labels:
|
||||||
traefik.http.routers.keycloak-wip.rule: Host(`keycloak-wip.jafner.net`)
|
traefik.http.routers.keycloak.rule: Host(`keycloak.jafner.net`)
|
||||||
traefik.http.routers.keycloak-wip.tls.certresolver: lets-encrypt
|
traefik.http.routers.keycloak.tls.certresolver: lets-encrypt
|
||||||
traefik.http.routers.keycloak-wip.middlewares: keycloak-redirect
|
traefik.http.routers.keycloak.middlewares: keycloak-redirect
|
||||||
traefik.http.services.keycloak-wip.loadbalancer.server.port: 8080
|
traefik.http.services.keycloak.loadbalancer.server.port: 8080
|
||||||
traefik.http.middlewares.keycloak-redirect.redirectregex.regex: ^https:\\/\\/([^\\//]+)\\/?$$"
|
traefik.http.middlewares.keycloak-redirect.redirectregex.regex: ^https:\\/\\/([^\\//]+)\\/?$$"
|
||||||
traefik.http.middlewares.keycloak-redirect.redirectregex.replacement: https://$$1/admin"
|
traefik.http.middlewares.keycloak-redirect.redirectregex.replacement: https://$$1/admin"
|
||||||
|
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
KC_DB=postgres
|
|
||||||
KC_DB_URL=jdbc:postgresql://postgres/keycloak
|
|
||||||
KC_DB_USERNAME=keycloak
|
|
||||||
KC_HOSTNAME_URL=https://keycloak-wip.jafner.net
|
|
||||||
KC_PROXY=edge
|
|
||||||
KEYCLOAK_ADMIN=Jafner
|
|
@ -1 +1,8 @@
|
|||||||
KEYCLOAK_ADMIN="jafner"
|
KC_DB=postgres
|
||||||
|
KC_DB_URL=jdbc:postgresql://postgres/keycloak
|
||||||
|
KC_DB_USERNAME=keycloak
|
||||||
|
KC_HOSTNAME_URL=https://keycloak.jafner.net
|
||||||
|
KC_PROXY=edge
|
||||||
|
KC_HEALTH_ENABLED=true
|
||||||
|
KC_METRICS_ENABLED=true
|
||||||
|
KEYCLOAK_ADMIN=Jafner
|
||||||
|
Loading…
Reference in New Issue
Block a user