fix: keycloak problems

This commit is contained in:
2023-01-08 00:20:21 +01:00
parent a68fbd4838
commit 4b9ee96989
4 changed files with 62 additions and 19 deletions

View File

@@ -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