This commit is contained in:
mr 2024-11-04 14:24:52 +01:00
parent 605327e5c7
commit 828122a5a9

View File

@ -17,21 +17,6 @@ services:
- "8082:8080" - "8082:8080"
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /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: oc-auth:
image: 'oc-auth:latest' image: 'oc-auth:latest'
ports: ports:
@ -41,7 +26,7 @@ services:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.middlewares.auth.forwardauth.address=http://oc-auth:8080/oc/forward" - "traefik.http.middlewares.auth.forwardauth.address=http://oc-auth:8080/oc/forward"
- "traefik.http.middlewares.auth.forwardauth.authResponseHeaders=X-Forwarded-User" - "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: environment:
LDAP_ENDPOINTS: ldap:389 LDAP_ENDPOINTS: ldap:389
LDAP_BINDDN: cn=admin,dc=example,dc=com LDAP_BINDDN: cn=admin,dc=example,dc=com