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
-2
View File
@@ -130,8 +130,6 @@ services:
KEYCLOAK_HTTPS_REDIRECT: false
KC_HOSTNAME_STRICT: "false"
KC_PROXY: edge
KC_HOSTNAME: yalarba.ru
KEYCLOAK_FRONTEND_URL: https://yalarba.ru/auth
KC_HTTP_ENABLED: "true"
command: start --optimized
networks:
+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"]