add env 'DOCKER_VOLUME_STORAGE' for volume path customization

This commit is contained in:
L4RM4ND
2023-02-25 14:09:52 +01:00
parent 1d2ab5133b
commit ce70d88893
70 changed files with 167 additions and 168 deletions

View File

@@ -1,4 +1,3 @@
---
version: "2.1"
services:
paperless-ngx:
@@ -11,8 +10,8 @@ services:
#- PAPERLESS_URL=https://docs.example.com # uncomment and adjust if behind reverse proxy
#- REDIS_URL= #optional
volumes:
- /mnt/docker-volumes/paperless-ngx/config:/config
- /mnt/docker-volumes/paperless-ngx/data:/data
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/paperless-ngx/config:/config
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/paperless-ngx/data:/data
ports:
- 8000:8000
restart: unless-stopped