Initial commit
This commit is contained in:
commit
12ec5946df
2 changed files with 23 additions and 0 deletions
11
Dockerfile
Normal file
11
Dockerfile
Normal file
|
@ -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"]
|
12
compose.yml
Normal file
12
compose.yml
Normal file
|
@ -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
|
Loading…
Reference in a new issue