Paperless on NAS & PhotoStructure
This commit is contained in:
parent
09951d8ae7
commit
bdb0097561
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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`)"
|
||||
|
|
Loading…
Reference in New Issue