First commit
This commit is contained in:
commit
5a8faf7d56
15 changed files with 5018 additions and 0 deletions
26
files/keycloak/Containerfile
Normal file
26
files/keycloak/Containerfile
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
FROM quay.io/keycloak/keycloak:latest as builder
|
||||
|
||||
# Enable health and metrics support
|
||||
ENV KC_HEALTH_ENABLED=true
|
||||
ENV KC_METRICS_ENABLED=true
|
||||
|
||||
# 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
|
||||
COPY --chmod=444 sso.mforcen.dev.fullchain.pem /opt/keycloak
|
||||
COPY --chmod=444 sso.mforcen.dev.key /opt/keycloak
|
||||
COPY --chmod=444 mforcen.crt /opt/keycloak/conf/truststores
|
||||
RUN /opt/keycloak/bin/kc.sh build
|
||||
|
||||
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=jdbc:postgres://infra-db/keycloak
|
||||
ENV KC_DB_USERNAME=keycloak
|
||||
ENV KC_DB_PASSWORD=keycloak_pass
|
||||
ENV KC_HOSTNAME=sso.mforcen.dev
|
||||
ENTRYPOINT ["/opt/keycloak/bin/kc.sh", "start", "--optimized", "--https-certificate-file=/opt/keycloak/sso.mforcen.dev.fullchain.pem", "--https-certificate-key-file=/opt/keycloak/sso.mforcen.dev.key"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue