Refactor Authelia configuration: switch to directory bind mount for configuration files to prevent timeouts and add .gitignore for runtime files
This commit is contained in:
@@ -162,9 +162,11 @@ services:
|
||||
environment:
|
||||
TZ: "${TZ}"
|
||||
volumes:
|
||||
- ./authelia/configuration.yml:/config/configuration.yml:ro
|
||||
- ./authelia/users_database.yml:/config/users_database.yml:ro
|
||||
- authelia_data:/config
|
||||
# Mount entire config directory so individual file binds are not hidden by a named volume.
|
||||
# NOTE: The previous setup mounted a named volume at /config which masked the two file binds
|
||||
# causing Traefik -> Authelia timeouts (missing configuration). Persisted runtime files (db, notifications)
|
||||
# will live in this folder on the host; ensure db.sqlite3 is gitignored.
|
||||
- ./authelia:/config
|
||||
networks: [traefik_proxy, internal]
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
|
||||
Reference in New Issue
Block a user