update volumes

This commit is contained in:
peskyadmin 2025-04-10 22:41:12 -05:00
parent f8c483e7d4
commit 8096ab4046

View File

@ -26,7 +26,7 @@ services:
retries: 5 retries: 5
timeout: 5s timeout: 5s
volumes: volumes:
- database:/var/lib/postgresql/data - ./postgres/data:/var/lib/postgresql/data
environment: environment:
POSTGRES_PASSWORD: ${PG_PASS:?database password required} POSTGRES_PASSWORD: ${PG_PASS:?database password required}
POSTGRES_USER: ${PG_USER:-authentik} POSTGRES_USER: ${PG_USER:-authentik}
@ -48,7 +48,7 @@ services:
retries: 5 retries: 5
timeout: 3s timeout: 3s
volumes: volumes:
- redis:/data - ./redis/data:/data
network_mode: service:authentik-ts network_mode: service:authentik-ts
depends_on: depends_on:
- authentik-ts - authentik-ts
@ -64,8 +64,8 @@ services:
AUTHENTIK_POSTGRESQL__NAME: ${PG_DB:-authentik} AUTHENTIK_POSTGRESQL__NAME: ${PG_DB:-authentik}
AUTHENTIK_POSTGRESQL__PASSWORD: ${PG_PASS} AUTHENTIK_POSTGRESQL__PASSWORD: ${PG_PASS}
volumes: volumes:
- ./media:/media - .authentik/media:/media
- ./custom-templates:/templates - .authentik/templates:/templates
env_file: env_file:
- .env - .env
# ports: # ports:
@ -95,12 +95,12 @@ services:
# Removing `user: root` also prevents the worker from fixing the permissions # 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 # on the mounted folders, so when removing this make sure the folders have the correct UID/GID
# (1000:1000 by default) # (1000:1000 by default)
user: root # user: root
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock # - /var/run/docker.sock:/var/run/docker.sock
- ./media:/media - ./authentik-worker/media:/media
- ./certs:/certs - ./authentik-worker/certs:/certs
- ./custom-templates:/templates - ./authentik-worker/templates:/templates
env_file: env_file:
- .env - .env
network_mode: service:authentik-ts network_mode: service:authentik-ts