docker/authelia/authelia.yml

30 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2023-08-07 14:42:56 +00:00
version: '3'
services:
authelia:
image: authelia/authelia
container_name: authelia
volumes:
- ./config:/config
networks:
- proxy
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.authelia.entrypoints=websecure'
- 'traefik.http.routers.authelia.rule=Host(`authelia.meftimes.com`)'
- 'traefik.http.middlewares.authelia.forwardauth.address=http://authelia:9091/api/verify?rd=https://authelia.meftimes.com'
- 'traefik.http.middlewares.authelia.forwardauth.trustForwardHeader=true'
- 'traefik.http.middlewares.authelia.forwardauth.authResponseHeaders=Remote-User,Remote-Groups,Remote-Name,Remote-Email'
- 'traefik.http.services.authelia.loadbalancer.server.port=9091'
restart: unless-stopped
environment:
- TZ=America/New_York
- AUTHELIA_JWT_SECRET_FILE=/config/authelia_jwt_secret
- AUTHELIA_SESSION_SECRET_FILE=/config/authelia_session_secret
- AUTHELIA_STORAGE_ENCRYPTION_KEY_FILE=/config/authelia_storage_encryption_key
healthcheck:
disable: true
networks:
proxy:
external: true