mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-10 05:18:33 +01:00
fix: keycloak problems
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
KEYCLOAK_ADMIN=admin
|
||||
KEYCLOAK_ADMIN_PASSWORD={{ keycloak_admin_password }}
|
||||
PROXY_ADDRESS_FORWARDING=true
|
||||
KC_PROXY=edge
|
||||
KC_LOG_LEVEL=ALL
|
||||
|
||||
KC_DB_URL_HOST=postgres
|
||||
KC_DB_USERNAME=keycloak
|
||||
KC_DB_PASSWORD={{ keycloak_postgres_password }}
|
||||
@@ -5,9 +5,20 @@ version: '3.3'
|
||||
services:
|
||||
keycloak:
|
||||
container_name: keycloak-container
|
||||
command: start-dev --http-enabled=true
|
||||
image: quay.io/keycloak/keycloak:18.0.0
|
||||
env_file: keycloak.env
|
||||
command: start --hostname-strict=false --log-level=WARNING
|
||||
image: quay.io/keycloak/keycloak:20.0.2
|
||||
environment:
|
||||
- KEYCLOAK_ADMIN=admin
|
||||
- KEYCLOAK_ADMIN_PASSWORD={{ keycloak_admin_password }}
|
||||
- PROXY_ADDRESS_FORWARDING=true
|
||||
- KC_PROXY=edge
|
||||
- KC_LOG_LEVEL=ALL
|
||||
- KC_DB_URL_HOST=postgres
|
||||
- KC_DB_USERNAME=keycloak
|
||||
- KC_DB_PASSWORD={{ keycloak_postgres_password }}
|
||||
- KC_HEALTH_ENABLED=true
|
||||
- KC_METRICS_ENABLED=true
|
||||
- KEYCLOAK_LOGLEVEL=WARN
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 5050:8080
|
||||
@@ -17,8 +28,11 @@ services:
|
||||
- postgres_password
|
||||
postgres:
|
||||
container_name: postgres-container
|
||||
image: postgres:13.2
|
||||
env_file: postgres.env
|
||||
image: postgres:15.1
|
||||
environment:
|
||||
- POSTGRES_DB=keycloak
|
||||
- POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password
|
||||
- POSTGRES_USER=keycloak
|
||||
restart: unless-stopped
|
||||
secrets:
|
||||
- postgres_password
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
POSTGRES_DB=keycloak
|
||||
POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password
|
||||
POSTGRES_USER=keycloak
|
||||
Reference in New Issue
Block a user