Files
nas-compose/authentication.docker-compose.yml
2023-01-10 15:46:32 +01:00

49 lines
1.3 KiB
YAML

name: authentication
services:
authelia:
image: authelia/authelia
command: --config /etc/authelia/configuration.yml,/etc/authelia/access.yml,/etc/authelia/authentication.yml
environment:
NASCOMPOSE_TRAEFIK_DOMAINS: ${NASCOMPOSE_TRAEFIK_DOMAINS?}
AUTHELIA_DEFAULT_REDIRECTION_URL: "" #Heimdall
AUTHELIA_JWT_SECRET_FILE: /run/secrets/jwt_secret
networks:
- traefik
volumes:
- config:/config
configs:
- source: authelia_configuration
target: /etc/authelia/configuration.yml
- source: authelia_access
target: /etc/authelia/access.yml
- source: authelia_authentication
target: /etc/authelia/authentication.yml
secrets:
- jwt_secret
labels:
traefik.enable: true
networks:
traefik:
external: true
volumes:
config:
driver_opts:
type: none
o: bind
device: ${NASCOMPOSE_SERVICES?}/volumes/authelia/config/
configs:
authelia_configuration:
file: ${NASCOMPOSE_SERVICES?}/configs/authelia/configuration.yml
authelia_access:
file: ${NASCOMPOSE_SERVICES?}/configs/authelia/access.yml
authelia_authentication:
file: ${NASCOMPOSE_SERVICES?}/configs/authelia/authentication.yml
secrets:
jwt_secret:
file: ${NASCOMPOSE_SERVICES?}/secrets/authelia/jwt_secret