commit 12ec5946dfadbaeef2a48aafbc4a43a2b505671a Author: Fritz Date: Wed Oct 9 20:07:27 2024 +0200 Initial commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f5c2c29 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM quay.io/keycloak/keycloak:latest + +ENV KC_DB=postgres +ENV KC_FEATURES=token-exchange,scripts,admin-fine-grained-authz +ENV KC_HOSTNAME=https://auth.ccchb.de +ENV KC_HTTP_ENABLED=true +ENV KC_PROXY_HEADERS=xforwarded + +RUN /opt/keycloak/bin/kc.sh build + +ENTRYPOINT ["/opt/keycloak/bin/kc.sh"] diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..831c1fd --- /dev/null +++ b/compose.yml @@ -0,0 +1,12 @@ +services: + keycloak: + build: . + env_file: .env + extra_hosts: + - "postgres.docker.internal=host-gateway" + ports: + - "127.0.0.1:8000:8080" + command: + - "start" + - "--optimized" + restart: unless-stopped