Update containers.adoc (#15729)

You have to set also variable KC_DB after building image, otherwise Keycloak will default to H2 database
This commit is contained in:
m2minthemeadow 2023-01-20 09:14:32 +01:00 committed by GitHub
parent bd30023d62
commit 447364076a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,6 +40,7 @@ FROM quay.io/keycloak/keycloak:latest
COPY --from=builder /opt/keycloak/ /opt/keycloak/
# change these values to point to a running postgres instance
ENV KC_DB=postgres
ENV KC_DB_URL=<DBURL>
ENV KC_DB_USERNAME=<DBUSERNAME>
ENV KC_DB_PASSWORD=<DBPASSWORD>