2020-01-19 17:06:37 +07:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
traefik:
|
2021-03-09 10:18:48 +07:00
|
|
|
image: traefik:v2.4.7
|
2020-01-19 17:06:37 +07:00
|
|
|
volumes:
|
|
|
|
- '/var/run/docker.sock:/var/run/docker.sock'
|
|
|
|
labels:
|
|
|
|
- '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'
|
2020-05-27 18:55:44 +07:00
|
|
|
- 'traefik.http.middlewares.authelia.forwardauth.address=https://authelia-backend:9091${PathPrefix}/api/verify?rd=https://login.example.com:8080${PathPrefix}' # Traefik 2.x
|
|
|
|
- 'traefik.http.middlewares.authelia.forwardauth.tls.insecureSkipVerify=true' # Traefik 2.x
|
|
|
|
- 'traefik.http.middlewares.authelia.forwardauth.trustForwardHeader=true' # Traefik 2.x
|
2020-10-26 18:38:08 +07:00
|
|
|
- 'traefik.http.middlewares.authelia.forwardauth.authResponseHeaders=Remote-User, Remote-Groups, Remote-Name, Remote-Email' # Traefik 2.x
|
2020-01-19 17:06:37 +07:00
|
|
|
command:
|
|
|
|
- '--api'
|
|
|
|
- '--providers.docker=true'
|
|
|
|
- '--entrypoints.https=true'
|
|
|
|
- '--entrypoints.https.address=:8080'
|
|
|
|
- '--log=true'
|
|
|
|
- '--log.level=DEBUG'
|
|
|
|
- '--log.filepath=/var/log/traefik.log'
|
2020-04-14 06:57:28 +07:00
|
|
|
- '--serversTransport.insecureSkipVerify=true'
|
2020-01-19 17:06:37 +07:00
|
|
|
networks:
|
|
|
|
authelianet:
|
|
|
|
# Set the IP to be able to query on port 8080
|
|
|
|
ipv4_address: 192.168.240.100
|