diff --git a/01-core/docker-compose.yml b/01-core/docker-compose.yml index 70a0e5c..ce3003e 100644 --- a/01-core/docker-compose.yml +++ b/01-core/docker-compose.yml @@ -33,23 +33,23 @@ services: container_name: authelia restart: unless-stopped volumes: - - ./data/authelia:/config + - ./config:/config networks: - traefik_proxy + environment: + - AUTHELIA_JWT_SECRET=${AUTHELIA_JWT_SECRET} + - AUTHELIA_SESSION_SECRET=${AUTHELIA_SESSION_SECRET} + - AUTHELIA_STORAGE_ENCRYPTION_KEY=${AUTHELIA_STORAGE_ENCRYPTION_KEY} labels: - "traefik.enable=true" - "traefik.http.routers.authelia.rule=Host(`auth.brabros.de`)" - "traefik.http.routers.authelia.entrypoints=websecure" - "traefik.http.routers.authelia.tls.certresolver=myresolver" - - "traefik.http.services.authelia.loadbalancer.server.port=9091" - "traefik.http.middlewares.authelia.forwardauth.address=http://authelia:9091/api/verify?rd=https://auth.brabros.de/" - "traefik.http.middlewares.authelia.forwardauth.trustForwardHeader=true" - "traefik.http.middlewares.authelia.forwardauth.authResponseHeaders=Remote-User,Remote-Groups,Remote-Name,Remote-Email" - - environment: - - AUTHELIA_JWT_SECRET=${AUTHELIA_JWT_SECRET} - - AUTHELIA_SESSION_SECRET=${AUTHELIA_SESSION_SECRET} - - AUTHELIA_STORAGE_ENCRYPTION_KEY=${AUTHELIA_STORAGE_ENCRYPTION_KEY} + - "traefik.http.services.authelia.loadbalancer.server.port=9091" + - "traefik.docker.network=traefik_proxy" homer: image: b4bz/homer:latest container_name: homer