From 8214e92c17b739fcf136f3accf805fab8e34e0cb Mon Sep 17 00:00:00 2001 From: Mohmmed Elfateh Sabry <59346303+elfateh4@users.noreply.github.com> Date: Mon, 11 Aug 2025 03:16:32 +0300 Subject: [PATCH] Refactor Authelia configuration: switch to directory bind mount for configuration files to prevent timeouts and add .gitignore for runtime files --- authelia/.gitignore | 4 ++++ docker-compose.yml | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 authelia/.gitignore diff --git a/authelia/.gitignore b/authelia/.gitignore new file mode 100644 index 0000000..1bd3a40 --- /dev/null +++ b/authelia/.gitignore @@ -0,0 +1,4 @@ +# Ignore Authelia runtime/state files +# SQLite database and notification artifacts stored after switching to directory bind mount +/db.sqlite3 +/notification.txt diff --git a/docker-compose.yml b/docker-compose.yml index 3c43cb7..52c57d7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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