feat(docker-stack-paperless): add possibility to configure media path via env var

This commit is contained in:
2025-10-02 13:25:46 +03:00
parent 98d85c9a6b
commit 6b58c2d3c3

View File

@@ -47,7 +47,7 @@ services:
- PAPERLESS_SOCIALACCOUNT_ALLOW_SIGNUPS=${PAPERLESS_SOCIALACCOUNT_ALLOW_SIGNUPS} - PAPERLESS_SOCIALACCOUNT_ALLOW_SIGNUPS=${PAPERLESS_SOCIALACCOUNT_ALLOW_SIGNUPS}
volumes: volumes:
- ${SERVICE_DATA_ROOT_PATH}/data:/usr/src/paperless/data - ${SERVICE_DATA_ROOT_PATH}/data:/usr/src/paperless/data
- ${SERVICE_DATA_ROOT_PATH}/media:/usr/src/paperless/media - ${MEDIA_PATH:-${SERVICE_DATA_ROOT_PATH}/media}:/usr/src/paperless/media
- ${SERVICE_DATA_ROOT_PATH}/export:/usr/src/paperless/export - ${SERVICE_DATA_ROOT_PATH}/export:/usr/src/paperless/export
- ${CONSUME_PATH}:/usr/src/paperless/consume - ${CONSUME_PATH}:/usr/src/paperless/consume
depends_on: depends_on:
@@ -96,7 +96,7 @@ services:
volumes: volumes:
- ${SERVICE_DATA_ROOT_PATH}/restic/resticprofile.yaml:/etc/resticprofile/profiles.yaml:ro - ${SERVICE_DATA_ROOT_PATH}/restic/resticprofile.yaml:/etc/resticprofile/profiles.yaml:ro
- ${SERVICE_DATA_ROOT_PATH}/restic/restic.key:/etc/resticprofile/key:ro - ${SERVICE_DATA_ROOT_PATH}/restic/restic.key:/etc/resticprofile/key:ro
- ${SERVICE_DATA_ROOT_PATH}/media:/media:ro - ${MEDIA_PATH:-${SERVICE_DATA_ROOT_PATH}/media}:/media:ro
- ${SERVICE_DATA_ROOT_PATH}/db_dumps:/db_dumps:ro - ${SERVICE_DATA_ROOT_PATH}/db_dumps:/db_dumps:ro
command: command:
- '-c' - '-c'