chore: replace static secrets in Keycloak realm with env vars, update Dockerfile for non-root optimization, and align .env.example with new configuration
Build and Publish Docker Images / build-and-push (., backend/infrastructure/gateway/Dockerfile, api-gateway, api-gateway) (push) Successful in 7m23s
Build and Publish Docker Images / build-and-push (., backend/services/ping/Dockerfile, ping-service, ping-service) (push) Successful in 7m36s
Build and Publish Docker Images / build-and-push (., config/docker/caddy/web-app/Dockerfile, web-app, web-app) (push) Successful in 1m56s
Build and Publish Docker Images / build-and-push (., config/docker/keycloak/Dockerfile, keycloak, keycloak) (push) Failing after 38s
Build and Publish Docker Images / build-and-push (., backend/infrastructure/gateway/Dockerfile, api-gateway, api-gateway) (push) Successful in 7m23s
Build and Publish Docker Images / build-and-push (., backend/services/ping/Dockerfile, ping-service, ping-service) (push) Successful in 7m36s
Build and Publish Docker Images / build-and-push (., config/docker/caddy/web-app/Dockerfile, web-app, web-app) (push) Successful in 1m56s
Build and Publish Docker Images / build-and-push (., config/docker/keycloak/Dockerfile, keycloak, keycloak) (push) Failing after 38s
This commit is contained in:
+14
-3
@@ -18,7 +18,7 @@ BACKUP_DIR=/home/<USER>/backups/meldestelle
|
||||
BACKUP_RETENTION_DAYS=7
|
||||
|
||||
# --- DOCKER BUILD & REGISTRY ---
|
||||
DOCKER_REGISTRY=git.mo-code.at/mo-code
|
||||
DOCKER_REGISTRY=git.mo-code.at/mocode-software/meldestelle
|
||||
DOCKER_TAG=latest
|
||||
DOCKER_VERSION=1.0.0-SNAPSHOT
|
||||
DOCKER_BUILD_DATE=2026-02-02T15:00:00Z
|
||||
@@ -45,7 +45,7 @@ POSTGRES_EFFECTIVE_CACHE_SIZE=768MB
|
||||
|
||||
# --- VALKEY (formerly Redis) ---
|
||||
VALKEY_IMAGE=valkey/valkey:9-alpine
|
||||
VALKEY_PASSWORD=
|
||||
VALKEY_PASSWORD=<SICHERES_PASSWORT>
|
||||
VALKEY_PORT=6379:6379
|
||||
VALKEY_SERVER_HOSTNAME=valkey
|
||||
VALKEY_SERVER_PORT=6379
|
||||
@@ -54,7 +54,7 @@ VALKEY_POLICY=allkeys-lru
|
||||
VALKEY_MAX_MEMORY=256mb
|
||||
|
||||
# --- KEYCLOAK ---
|
||||
KEYCLOAK_IMAGE_TAG=26.4
|
||||
KEYCLOAK_IMAGE_TAG=26.5.5
|
||||
KC_HEAP_MIN=512M
|
||||
KC_HEAP_MAX=1024M
|
||||
# LOKAL: start-dev --import-realm
|
||||
@@ -64,6 +64,8 @@ KC_ADMIN_USERNAME=kc-admin
|
||||
KC_ADMIN_PASSWORD=<SICHERES_PASSWORT>
|
||||
KC_DB=postgres
|
||||
KC_DB_SCHEMA=keycloak
|
||||
KC_DB_URL=jdbc:postgresql://postgres:5432/pg-meldestelle-db
|
||||
KC_DB_USERNAME=<DB_USER>
|
||||
KC_DB_PASSWORD=<SICHERES_PASSWORT>
|
||||
# SERVER: Public Domain (z.B. auth.mo-code.at) – ohne http/https Prefix!
|
||||
# LOKAL: localhost
|
||||
@@ -74,6 +76,15 @@ KC_HOSTNAME_STRICT=false
|
||||
KC_HOSTNAME_STRICT_HTTPS=false
|
||||
KC_PORT=8180:8080
|
||||
KC_MANAGEMENT_PORT=9000:9000
|
||||
# Keycloak Client Secrets (müssen mit meldestelle-realm.json übereinstimmen)
|
||||
KC_API_GATEWAY_CLIENT_SECRET=<SICHERES_SECRET>
|
||||
KC_POSTMAN_CLIENT_SECRET=<SICHERES_SECRET>
|
||||
# Bootstrap Admin-User Passwort (nur für Realm-Import, danach ändern!)
|
||||
KC_BOOTSTRAP_ADMIN_PASSWORD=<SICHERES_PASSWORT>
|
||||
# Frontend URL: Public-URL des Keycloak (für Token-Issuer im Browser)
|
||||
# LOKAL: http://localhost:8180
|
||||
# SERVER: https://auth.mo-code.at
|
||||
KC_FRONTEND_URL=http://localhost:8180
|
||||
|
||||
# --- KEYCLOAK TOKEN VALIDATION ---
|
||||
# Public Issuer URI: muss mit dem Hostname übereinstimmen, den Browser/App sieht
|
||||
|
||||
Reference in New Issue
Block a user