2024-02-16 21:04:01 +02:00
|
|
|
[Unit]
|
|
|
|
Description=SSO Provider for OpenFest
|
|
|
|
|
|
|
|
[Container]
|
|
|
|
ContainerName=sso-keycloak
|
|
|
|
Image=quay.io/keycloak/keycloak:latest
|
|
|
|
|
|
|
|
Environment=JAVA_OPTS="-Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.err.encoding=UTF-8 -Dstdout.encoding=UTF-8 -Dstderr.encoding=UTF-8 -XX:+ExitOnOutOfMemoryError -Djava.security.egd=file:/dev/urandom -XX:+UseG1GC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=80 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:FlightRecorderOptions=stackdepth=512"
|
2024-02-17 11:00:06 +02:00
|
|
|
Volume={{ keycloak.datadir }}/keystore/:/keystore/
|
2024-02-16 21:04:01 +02:00
|
|
|
|
|
|
|
Secret=keycloak-admin-user,type=env,target=KEYCLOAK_ADMIN
|
|
|
|
Secret=keycloak-admin-password,type=env,target=KEYCLOAK_ADMIN_PASSWORD
|
|
|
|
|
|
|
|
Secret=keycloak-db-host,type=env,target=KC_DB_URL_HOST
|
|
|
|
Secret=keycloak-db-name,type=env,target=KC_DB_URL_DATABASE
|
|
|
|
Secret=keycloak-db-user,type=env,target=KC_DB_USERNAME
|
|
|
|
Secret=keycloak-db-password,type=env,target=KC_DB_PASSWORD
|
|
|
|
Environment=KC_DB=postgres
|
|
|
|
Environment=KC_HEALTH_ENABLED=true
|
|
|
|
|
2024-02-17 11:00:06 +02:00
|
|
|
Exec=start --features=preview --hostname {{ keycloak.hostname }} --proxy edge
|
2024-02-16 21:04:01 +02:00
|
|
|
|
2024-02-17 11:00:06 +02:00
|
|
|
PublishPort={{ keycloak.listen_address }}:8080
|
2024-02-16 21:04:01 +02:00
|
|
|
AutoUpdate=registry
|
|
|
|
[Install]
|
|
|
|
WantedBy=default.target
|