auth
This commit is contained in:
parent
605327e5c7
commit
828122a5a9
@ -17,21 +17,6 @@ services:
|
||||
- "8082:8080"
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
whoami: # TEST PURPOSE
|
||||
image: traefik/whoami
|
||||
container_name: whoami
|
||||
networks:
|
||||
- catalog
|
||||
ports:
|
||||
- "5000:80"
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.whoami.entrypoints=web"
|
||||
- "traefik.http.routers.whoami.rule=Host(`localhost`)"
|
||||
- "traefik.routers.whoami.rule=Path(/whoami)"
|
||||
- "traefik.http.routers.whoami.tls=false"
|
||||
- "traefik.http.services.whoami.loadbalancer.server.port=80"
|
||||
- "traefik.http.routers.whoami.middlewares=auth"
|
||||
oc-auth:
|
||||
image: 'oc-auth:latest'
|
||||
ports:
|
||||
@ -41,7 +26,7 @@ services:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.middlewares.auth.forwardauth.address=http://oc-auth:8080/oc/forward"
|
||||
- "traefik.http.middlewares.auth.forwardauth.authResponseHeaders=X-Forwarded-User"
|
||||
- "traefik.http.services.auth.loadbalancer.server.port=8080"
|
||||
- "traefik.http.routers.workflow.rule=PathPrefix(/auth)"
|
||||
environment:
|
||||
LDAP_ENDPOINTS: ldap:389
|
||||
LDAP_BINDDN: cn=admin,dc=example,dc=com
|
||||
|
Loading…
Reference in New Issue
Block a user