Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "3.7"
- services:
- photostructure:
- # You can run alpha, beta, or stable builds. See
- # <https://forum.photostructure.com/t/274> for details.
- image: photostructure/server:stable
- container_name: photostructure
- # See https://docs.docker.com/compose/compose-file/#restart
- restart: always
- # PhotoStructure needs some time to close the database cleanly.
- # (It should normally only take seconds, but 2m accounts for
- # a spun-down, remote, old HDD hosting a very large library):
- stop_grace_period: 2m
- volumes:
- # /ps/library is where your PhotoStructure Library will be stored.
- # It must be readable, writable, and have sufficient free space.
- # If it is a remote volume, uncomment the PS_FORCE_LOCAL_DB_REPLICA
- # environment line below.
- - type: bind
- source: /srv/dev-disk-by-uuid-3113b027-5b78-45ff-8658-55185af89df2/CONFIG/Photostructure # < CHANGE THIS LINE
- target: /ps/library
- # /ps/tmp must be fast, local disk with many gigabytes free.
- # PhotoStructure will use this directory for file caching
- # and for storing a temporary database replica when your
- # library is on a remote volume.
- - type: bind
- source: /home/pascal/Photostructure_temp/cache/photostructure
- target: /ps/tmp
- # /ps/config stores your "system settings"
- - type: bind
- source: /home/pascal/Photostructure_temp/config/Photostructure-docker
- target: /ps/config
- # /ps/logs stores PhotoStructure log files.
- - type: bind
- source: /home/pascal/Photostructure_temp/config/Photostructure/logs
- target: /ps/logs
- # Example additional directories to import into your library.
- # Add as many as you'd like, or remove one or both of these examples.
- # Set the target to /media/... or /mnt/...
- # (the name doesn't matter, as long as it is unique)
- - type: bind
- source: /NEWNAS/PHOTOS # < CHANGE THIS LINE
- target: /var/photos-backup
- read_only: true
- # Here's another example directory to scan:
- # - type: bind
- # source: /home/jamie/Pictures
- # target: /var/home-jamie-pictures
- ports:
- - 1787:1787/tcp
- environment:
- # PhotoStructure has _tons_ of settings. See
- # <https://photostructure.com/faq/environment-variables/>
- # This tells PhotoStructure to only log errors, which is the default:
- - "PS_LOG_LEVEL=debug"
- # If PhotoStructure is refusing to spin up, uncomment these lines to see what's going on:
- # - "PS_LOG_LEVEL=info"
- - "PS_LOG_STDOUT=true"
- - "PS_TAIL_LOGS=1"
- # This is your local timezone. See <https://en.wikipedia.org/wiki/List_of_tz_database_time_zones>
- - "TZ=Europe/Paris" # < CHANGE THIS LINE
- # The userid to run PhotoStructure as:
- #- "PUID=1000" # < CHANGE THIS LINE or delete this line to run as root. See below for details.
- # The groupid to run PhotoStructure as:
- #- "PGID=1000" # < CHANGE THIS LINE or delete this line to run as root.
- #
- # The rest of this file enables automatic PhotoStructure upgrades.
- #
- labels:
- # See https://containrrr.dev/watchtower/container-selection/
- - "com.centurylinklabs.watchtower.enable=true"
- watchtower:
- image: containrrr/watchtower
- volumes:
- - /var/run/docker.sock:/var/run/docker.sock
- # Check for updates every couple hours: (3h * 60m * 60s)
- command: --interval 10800
- environment:
- - "WATCHTOWER_LABEL_ENABLE=true"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement