add DB env vars into Dockerfile

This commit is contained in:
2025-07-07 08:52:04 +05:00
parent 97f9cf1ce7
commit 66deed0b0a
2 changed files with 8 additions and 2 deletions
+8
View File
@@ -13,5 +13,13 @@ RUN /opt/keycloak/bin/kc.sh build
FROM quay.io/keycloak/keycloak:latest
COPY --from=builder /opt/keycloak/ /opt/keycloak/
ENV KC_DB=postgres
ENV KC_DB_URL=jdbc:postgresql://kk_db:5432/keycloak
ENV KC_DB_USERNAME=postgres
ENV KC_DB_PASSWORD=postgres
ENV KC_HOSTNAME=yalarba.ru
ENV KEYCLOAK_FRONTEND_URL=https://yalarba.ru/auth
ENTRYPOINT ["/opt/keycloak/bin/kc.sh"]