From 8096ab40460b4367692479aeaedcf9086138e6c7 Mon Sep 17 00:00:00 2001 From: peskyadmin Date: Thu, 10 Apr 2025 22:41:12 -0500 Subject: [PATCH] update volumes --- docker-compose.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index cbfa7b8..c6604bd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -26,7 +26,7 @@ services: retries: 5 timeout: 5s volumes: - - database:/var/lib/postgresql/data + - ./postgres/data:/var/lib/postgresql/data environment: POSTGRES_PASSWORD: ${PG_PASS:?database password required} POSTGRES_USER: ${PG_USER:-authentik} @@ -48,7 +48,7 @@ services: retries: 5 timeout: 3s volumes: - - redis:/data + - ./redis/data:/data network_mode: service:authentik-ts depends_on: - authentik-ts @@ -64,8 +64,8 @@ services: AUTHENTIK_POSTGRESQL__NAME: ${PG_DB:-authentik} AUTHENTIK_POSTGRESQL__PASSWORD: ${PG_PASS} volumes: - - ./media:/media - - ./custom-templates:/templates + - .authentik/media:/media + - .authentik/templates:/templates env_file: - .env # ports: @@ -95,12 +95,12 @@ services: # Removing `user: root` also prevents the worker from fixing the permissions # on the mounted folders, so when removing this make sure the folders have the correct UID/GID # (1000:1000 by default) - user: root + # user: root volumes: - - /var/run/docker.sock:/var/run/docker.sock - - ./media:/media - - ./certs:/certs - - ./custom-templates:/templates + # - /var/run/docker.sock:/var/run/docker.sock + - ./authentik-worker/media:/media + - ./authentik-worker/certs:/certs + - ./authentik-worker/templates:/templates env_file: - .env network_mode: service:authentik-ts