2021-04-10 20:51:00 +00:00
|
|
|
---
|
2020-01-19 10:06:37 +00:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
traefik:
|
2023-06-21 14:00:54 +00:00
|
|
|
image: traefik:v2.10.3
|
2020-01-19 10:06:37 +00:00
|
|
|
volumes:
|
|
|
|
- '/var/run/docker.sock:/var/run/docker.sock'
|
|
|
|
labels:
|
2022-05-02 04:50:37 +00:00
|
|
|
- 'traefik.enable=true'
|
2020-01-19 10:06:37 +00:00
|
|
|
- 'traefik.http.routers.api.rule=Host(`traefik.example.com`)'
|
|
|
|
- 'traefik.http.routers.api.entrypoints=https'
|
|
|
|
- 'traefik.http.routers.api.service=api@internal'
|
|
|
|
- 'traefik.http.routers.api.tls=true'
|
2021-04-10 20:51:00 +00:00
|
|
|
# Traefik 2.x
|
2023-01-25 09:36:40 +00:00
|
|
|
- 'traefik.http.middlewares.authelia.forwardauth.address=https://authelia-backend:9091${PathPrefix}/api/authz/forward-auth' # yamllint disable-line rule:line-length
|
2021-04-10 20:51:00 +00:00
|
|
|
- 'traefik.http.middlewares.authelia.forwardauth.tls.insecureSkipVerify=true'
|
|
|
|
- 'traefik.http.middlewares.authelia.forwardauth.trustForwardHeader=true'
|
2023-02-02 07:13:18 +00:00
|
|
|
- 'traefik.http.middlewares.authelia.forwardauth.authResponseHeaders=Authorization,Proxy-Authorization,Remote-User,Remote-Groups,Remote-Email,Remote-Name' # yamllint disable-line rule:line-length
|
2020-01-19 10:06:37 +00:00
|
|
|
command:
|
2022-05-02 04:50:37 +00:00
|
|
|
- '--accesslog=true'
|
2020-01-19 10:06:37 +00:00
|
|
|
- '--api'
|
|
|
|
- '--providers.docker=true'
|
|
|
|
- '--entrypoints.https=true'
|
|
|
|
- '--entrypoints.https.address=:8080'
|
|
|
|
- '--log=true'
|
|
|
|
- '--log.level=DEBUG'
|
2022-05-02 04:50:37 +00:00
|
|
|
- '--providers.docker.exposedByDefault=false'
|
2020-04-13 23:57:28 +00:00
|
|
|
- '--serversTransport.insecureSkipVerify=true'
|
2020-01-19 10:06:37 +00:00
|
|
|
networks:
|
|
|
|
authelianet:
|
2021-05-04 22:06:05 +00:00
|
|
|
aliases:
|
|
|
|
- public.example.com
|
|
|
|
- secure.example.com
|
|
|
|
- login.example.com
|
2020-01-19 10:06:37 +00:00
|
|
|
# Set the IP to be able to query on port 8080
|
2021-04-10 20:51:00 +00:00
|
|
|
ipv4_address: 192.168.240.100
|
|
|
|
...
|