Deploy keycloak

does not deploy keycloak, everything reaches a point well, but it ends due to time or because it does not do the entire deploy.

What can be?

dockfile

FROM Quay as builder

Enable health and metrics support

ENV KC_HEALTH_ENABLED=false

ENV KC_METRICS_ENABLED=false

Configure a database vendor

ENV KC_DB=postgres

WORKDIR /opt/keycloak

for demonstration purposes only, please make sure to use proper certificates in production instead

RUN keytool -genkeypair -storepass password -storetype PKCS12 -keyalg RSA -keysize 2048 -dname “CN=server” -alias server -ext “SAN:c=DNS:localhost,IP:127.0.0.1” -keystore conf/server.keystore

RUN /opt/keycloak/bin/kc.sh build

FROM Quay

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=jdbc:postgresql://dpg-ckkudkjj*******/tog*****

ENV KC_DB_USERNAME=to*****_user

ENV KC_DB_PASSWORD=TZkSOTMn7Ilq5ui******

ENV KC_HOSTNAME=dpg-ckku****

ENV KEYCLOAK_ADMIN=admin

ENV KEYCLOAK_ADMIN_PASSWORD=chang****

ENV KEYCLOAK_HTTPS_CERTIFICATE=keycloak-r8x0.onrender

ENV KEYCLOAK_HTTPS_KEY=keycloak-r8x0.onrender

ENTRYPOINT [“/opt/keycloak/bin/kc.sh”, “start”, “–optimized” ]

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.