Advertisement
darrepac

Untitled

Jun 19th, 2022
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.57 KB | None | 0 0
  1. version: "3.7"
  2. services:
  3. photostructure:
  4. # You can run alpha, beta, or stable builds. See
  5. # <https://forum.photostructure.com/t/274> for details.
  6. image: photostructure/server:stable
  7. container_name: photostructure
  8.  
  9. # See https://docs.docker.com/compose/compose-file/#restart
  10. restart: always
  11.  
  12. # PhotoStructure needs some time to close the database cleanly.
  13. # (It should normally only take seconds, but 2m accounts for
  14. # a spun-down, remote, old HDD hosting a very large library):
  15. stop_grace_period: 2m
  16.  
  17. volumes:
  18. # /ps/library is where your PhotoStructure Library will be stored.
  19. # It must be readable, writable, and have sufficient free space.
  20. # If it is a remote volume, uncomment the PS_FORCE_LOCAL_DB_REPLICA
  21. # environment line below.
  22.  
  23. - type: bind
  24. source: /srv/dev-disk-by-uuid-3113b027-5b78-45ff-8658-55185af89df2/CONFIG/Photostructure # < CHANGE THIS LINE
  25. target: /ps/library
  26.  
  27. # /ps/tmp must be fast, local disk with many gigabytes free.
  28. # PhotoStructure will use this directory for file caching
  29. # and for storing a temporary database replica when your
  30. # library is on a remote volume.
  31.  
  32. - type: bind
  33. source: /home/pascal/Photostructure_temp/cache/photostructure
  34. target: /ps/tmp
  35.  
  36. # /ps/config stores your "system settings"
  37. - type: bind
  38. source: /home/pascal/Photostructure_temp/config/Photostructure-docker
  39. target: /ps/config
  40.  
  41. # /ps/logs stores PhotoStructure log files.
  42.  
  43. - type: bind
  44. source: /home/pascal/Photostructure_temp/config/Photostructure/logs
  45. target: /ps/logs
  46.  
  47. # Example additional directories to import into your library.
  48. # Add as many as you'd like, or remove one or both of these examples.
  49.  
  50. # Set the target to /media/... or /mnt/...
  51. # (the name doesn't matter, as long as it is unique)
  52.  
  53. - type: bind
  54. source: /NEWNAS/PHOTOS # < CHANGE THIS LINE
  55. target: /var/photos-backup
  56. read_only: true
  57.  
  58. # Here's another example directory to scan:
  59. # - type: bind
  60. # source: /home/jamie/Pictures
  61. # target: /var/home-jamie-pictures
  62.  
  63. ports:
  64. - 1787:1787/tcp
  65.  
  66. environment:
  67. # PhotoStructure has _tons_ of settings. See
  68. # <https://photostructure.com/faq/environment-variables/>
  69.  
  70. # This tells PhotoStructure to only log errors, which is the default:
  71. - "PS_LOG_LEVEL=debug"
  72.  
  73. # If PhotoStructure is refusing to spin up, uncomment these lines to see what's going on:
  74. # - "PS_LOG_LEVEL=info"
  75. - "PS_LOG_STDOUT=true"
  76. - "PS_TAIL_LOGS=1"
  77.  
  78. # This is your local timezone. See <https://en.wikipedia.org/wiki/List_of_tz_database_time_zones>
  79. - "TZ=Europe/Paris" # < CHANGE THIS LINE
  80.  
  81. # The userid to run PhotoStructure as:
  82. #- "PUID=1000" # < CHANGE THIS LINE or delete this line to run as root. See below for details.
  83.  
  84. # The groupid to run PhotoStructure as:
  85. #- "PGID=1000" # < CHANGE THIS LINE or delete this line to run as root.
  86.  
  87. #
  88. # The rest of this file enables automatic PhotoStructure upgrades.
  89. #
  90.  
  91. labels:
  92. # See https://containrrr.dev/watchtower/container-selection/
  93. - "com.centurylinklabs.watchtower.enable=true"
  94.  
  95. watchtower:
  96. image: containrrr/watchtower
  97. volumes:
  98. - /var/run/docker.sock:/var/run/docker.sock
  99. # Check for updates every couple hours: (3h * 60m * 60s)
  100. command: --interval 10800
  101. environment:
  102. - "WATCHTOWER_LABEL_ENABLE=true"
  103.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement