mirror of
https://github.com/suitenumerique/docs.git
synced 2026-08-25 08:52:26 +02:00
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>
13 lines
372 B
Plaintext
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} |