2021-12-30 11:46:21 +01:00
|
|
|
version: '3'
|
|
|
|
|
2022-01-01 15:21:03 +01:00
|
|
|
networks:
|
|
|
|
frontend:
|
|
|
|
external: true
|
|
|
|
|
2021-12-30 11:46:21 +01:00
|
|
|
services:
|
|
|
|
authelia:
|
|
|
|
image: authelia/authelia
|
|
|
|
container_name: authelia
|
|
|
|
volumes:
|
|
|
|
- /etc/authelia:/config
|
|
|
|
labels:
|
|
|
|
- 'traefik.enable=true'
|
2022-01-01 15:21:03 +01:00
|
|
|
- 'traefik.http.routers.authelia.rule=Host(`your-domain.com`)'
|
|
|
|
- 'traefik.http.routers.authelia.entrypoints=websecure'
|
2021-12-30 11:46:21 +01:00
|
|
|
- 'traefik.http.routers.authelia.tls=true'
|
2022-01-01 15:21:03 +01:00
|
|
|
- 'traefik.http.middlewares.authelia.forwardauth.address=http://authelia:9091/api/verify?rd=https://your-domain.com' # yamllint disable-line rule:line-length
|
2021-12-30 11:46:21 +01:00
|
|
|
- 'traefik.http.middlewares.authelia.forwardauth.trustForwardHeader=true'
|
2022-01-01 15:21:03 +01:00
|
|
|
- 'traefik.http.middlewares.authelia.forwardauth.authResponseHeaders=Remote-User,Remote-Groups,Remote-Name,Remote-Email' # yamllint disable-line rule:line-length
|
2021-12-30 11:46:21 +01:00
|
|
|
expose:
|
|
|
|
- 9091
|
|
|
|
restart: unless-stopped
|
|
|
|
healthcheck:
|
2022-01-01 15:21:03 +01:00
|
|
|
disable: true
|
|
|
|
|