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>
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user