Files
lasuite-docs/env.d/production.dist/kc_postgresql
T
risk-altandAnthony LC 0b933ed3a2 🐛(keycloak) fix database env variables in the self-hosting example
The Keycloak container ignored KC_DB_HOST, KC_DB_NAME and KC_DB_USER:
the Quarkus distribution expects KC_DB_URL_HOST, KC_DB_URL_DATABASE and
KC_DB_USERNAME instead. Keycloak silently fell back to its default JDBC
URL on localhost:5432 and could not reach the database container.

The host value also pointed to "postgresql" while the service is named
kc_postgresql in the example compose file, so it is fixed as well.

These names already match the ones used in env.d/development/kc_auth.

Signed-off-by: risk-alt <aldu6974@gmail.com>
2026-08-14 10:54:47 +02:00

13 lines
372 B
Plaintext

# Postgresql db container configuration
POSTGRES_DB=keycloak
POSTGRES_USER=keycloak
POSTGRES_PASSWORD=<generate postgres password>
PGDATA=/var/lib/postgresql/data/pgdata
# Keycloak postgresql configuration
KC_DB=postgres
KC_DB_SCHEMA=public
KC_DB_URL_HOST=kc_postgresql
KC_DB_URL_DATABASE=${POSTGRES_DB}
KC_DB_USERNAME=${POSTGRES_USER}
KC_DB_PASSWORD=${POSTGRES_PASSWORD}