From 38440fe0f04b9af7147e5da51ad44aeeb9d0ce5f Mon Sep 17 00:00:00 2001 From: root Date: Mon, 23 Mar 2026 02:10:39 +0000 Subject: [PATCH] fix: adguard and authentik use /opt bind mounts (original Portainer paths) Data was in /opt/adguard/{work,conf} and /opt/authentik/{postgres,redis} all along. Previous commit used named volumes which would ignore this data. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- adguard/docker-compose.yml | 6 ++---- authentik/docker-compose.yml | 8 ++------ 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/adguard/docker-compose.yml b/adguard/docker-compose.yml index 3895c91..2ca292f 100644 --- a/adguard/docker-compose.yml +++ b/adguard/docker-compose.yml @@ -6,8 +6,8 @@ services: restart: unless-stopped volumes: - - adguard-work-path:/opt/adguardhome/work:Z - - adguard-conf-path:/opt/adguardhome/conf:Z + - /opt/adguard/work:/opt/adguardhome/work:Z + - /opt/adguard/conf:/opt/adguardhome/conf:Z - adguard-cert-crt-path:/certs/adguard.crt:ro,Z - adguard-cert-key-path:/certs/adguard.key:ro,Z @@ -26,8 +26,6 @@ services: traefik.http.services.adguard.loadbalancer.server.port: "${ADGUARD_HTTP_PORT}" volumes: - adguard-work-path: - adguard-conf-path: adguard-cert-crt-path: adguard-cert-key-path: diff --git a/authentik/docker-compose.yml b/authentik/docker-compose.yml index 7994a0f..e7540d1 100644 --- a/authentik/docker-compose.yml +++ b/authentik/docker-compose.yml @@ -8,7 +8,7 @@ services: POSTGRES_USER: ${AUTHENTIK_DB_USER} POSTGRES_DB: ${AUTHENTIK_DB_NAME} volumes: - - authentik-postgres-path:/var/lib/postgresql/data:Z + - /opt/authentik/postgres:/var/lib/postgresql/data:Z networks: - ths_authentik_internal @@ -18,7 +18,7 @@ services: restart: unless-stopped command: ["redis-server", "--save", "60", "1", "--loglevel", "warning"] volumes: - - authentik-redis-path:/data:Z + - /opt/authentik/redis:/data:Z networks: - ths_authentik_internal @@ -86,10 +86,6 @@ services: networks: - ths_authentik_internal -volumes: - authentik-postgres-path: - authentik-redis-path: - networks: proxy: external: true