containerfile for my own keycloak setup
Dieser Commit ist enthalten in:
Commit
f3f7f53495
|
@ -0,0 +1,34 @@
|
||||||
|
FROM quay.io/keycloak/keycloak:latest as builder
|
||||||
|
ENV PATH="/opt/keycloak/bin:/usr/bin:/usr/local/bin"
|
||||||
|
|
||||||
|
ENV KC_HEALTH_ENABLED=false
|
||||||
|
#ifdef DEBUG
|
||||||
|
ENV KC_DB=dev-file
|
||||||
|
#else
|
||||||
|
ENV KC_DB=postgres
|
||||||
|
#endif
|
||||||
|
ENV KC_CACHE_STACK=tcp
|
||||||
|
ENV KC_HTTPS_CLIENT_AUTH=request
|
||||||
|
ENV KC_FEATURES=dynamic-scopes,recovery-codes,preview
|
||||||
|
RUN kc.sh build
|
||||||
|
|
||||||
|
FROM quay.io/keycloak/keycloak:latest
|
||||||
|
ENV PATH="/opt/keycloak/bin:/usr/bin:/usr/local/bin"
|
||||||
|
|
||||||
|
COPY --from=builder /opt/keycloak/ /opt/keycloak/
|
||||||
|
|
||||||
|
WORKDIR /opt/keycloak
|
||||||
|
#ifdef DEBUG
|
||||||
|
ENV KC_HOSTNAME_URL="http://localhost:8080"
|
||||||
|
#else
|
||||||
|
ENV KC_HOSTNAME_ADMIN_URL="https://admin.sso.sebastian-tobie.de"
|
||||||
|
ENV KC_HOSTNAME_URL="https://sso.sebastian-tobie.de"
|
||||||
|
#endif
|
||||||
|
ENV KC_DB_USERNAME=keycloak
|
||||||
|
ENV KC_DB_PASSWORD=changeme
|
||||||
|
ENV KC_DB_URL=postgres.services.tobie
|
||||||
|
|
||||||
|
ENV KEYCLOAK_ADMIN="admin"
|
||||||
|
ENV KEYCLOAK_ADMIN_PASSWORD="admin"
|
||||||
|
EXPOSE 8080
|
||||||
|
ENTRYPOINT ["kc.sh", "start", "--optimized", "--http-enabled", "true", "--proxy", "edge", "--log-console-format", "'%-5p [%c] (%t) %s%e%n'", "--hostname-strict-backchannel=true"]
|
Laden…
In neuem Issue referenzieren