From bdb0097561c5fb329010141843f13e585f6f8e9c Mon Sep 17 00:00:00 2001 From: BhasherBEL Date: Tue, 6 Aug 2024 11:10:12 +0200 Subject: [PATCH] Paperless on NAS & PhotoStructure --- bxl-shp/apps/docker-compose.paperless.yaml | 8 ++--- .../apps/docker-compose.photostructure.yaml | 36 +++++++++++++++++++ bxl-shp/apps/docker-compose.syncthing.yaml | 2 +- 3 files changed, 41 insertions(+), 5 deletions(-) create mode 100644 bxl-shp/apps/docker-compose.photostructure.yaml diff --git a/bxl-shp/apps/docker-compose.paperless.yaml b/bxl-shp/apps/docker-compose.paperless.yaml index 9abf072..343280e 100644 --- a/bxl-shp/apps/docker-compose.paperless.yaml +++ b/bxl-shp/apps/docker-compose.paperless.yaml @@ -8,10 +8,10 @@ services: - postgres - redis volumes: - - $DATA/paperless/data:/usr/src/paperless/data - - $DATA/paperless/media:/usr/src/paperless/media - - $DATA/paperless/export:/usr/src/paperless/export - - $DATA/paperless/consume:/usr/src/paperless/consume + - /mnt/sync/paperless/data:/usr/src/paperless/data + - /mnt/sync/paperless/media:/usr/src/paperless/media + - /mnt/sync/paperless/export:/usr/src/paperless/export + - /mnt/sync/paperless/consume:/usr/src/paperless/consume environment: - PAPERLESS_REDIS=redis://redis:6379 - PAPERLESS_DBENGINE=postgresql diff --git a/bxl-shp/apps/docker-compose.photostructure.yaml b/bxl-shp/apps/docker-compose.photostructure.yaml new file mode 100644 index 0000000..14cba35 --- /dev/null +++ b/bxl-shp/apps/docker-compose.photostructure.yaml @@ -0,0 +1,36 @@ +services: + photostructure: + container_name: photostructure + image: photostructure/server:stable + restart: unless-stopped + depends_on: + - traefik + stop_grace_period: 2m + volumes: + - type: bind + source: /mnt/sync/photostructure/library + target: /ps/library + - type: bind + source: $DATA/photostructure/tmp + target: /ps/tmp + - type: bind + source: $DATA/photostructure/config + target: /ps/config + - type: bind + source: $DATA/photostructure/logs + target: /ps/logs + environment: + - TZ=Europe/Paris + - PUID=1000 + - PGID=1000 + labels: + - "traefik.enable=true" + - "traefik.http.routers.photostructure.rule=Host(`photos.bhasher.com`)" + - "traefik.http.routers.photostructure.entrypoints=internalsecure" + - "traefik.http.services.photostructure.loadbalancer.server.port=1787" + - "traefik.http.routers.photostructure.tls=true" + - "traefik.http.routers.photostructure.tls.certresolver=http" + - "traefik.http.routers.photostructure.middlewares=authelia@docker" + - "com.centurylinklabs.watchtower.enable=true" + networks: + - external diff --git a/bxl-shp/apps/docker-compose.syncthing.yaml b/bxl-shp/apps/docker-compose.syncthing.yaml index ac7fd91..82339dd 100644 --- a/bxl-shp/apps/docker-compose.syncthing.yaml +++ b/bxl-shp/apps/docker-compose.syncthing.yaml @@ -9,7 +9,7 @@ services: volumes: - $DATA/syncthing:/var/syncthing:rw - /mnt/syncDocuments:/mnt/SyncDocuments:rw - - /mnt/pictures-sorted:/mnt/pictures-sorted:rw + - /mnt/sync/photostructure/library:/mnt/photostructure:rw labels: - "traefik.enable=true" - "traefik.http.routers.syncthing.rule=Host(`syncthing.bhasher.com`)"