I’m trying for the first time photostructure on my QNAP NAS (TS-453D) but I can’t seem to mount the share in which I have all my photos stored, would you please take a look at my YAML text to check if you can spot any errors?
For the record, my UID is 1000, GUID 100 and my photos are located at the “/share/CACHEDEV3_DATA/photos” share. The “/share/homes/jumanjimanji/.photostructure-logs” folder (and the .photostructure) was made with the “mkdir -p .photostructure-logs” commands, as the
I’ve also created a shared folder especially for photostructure “/share/CACHEDEV3_DATA/photostructure/library”.
Here goes the YAML text:
version: "3" services: photostructure: image: photostructure/server:stable container_name: photostructure restart: on-failure stop_grace_period: 2m # This is the user id and group id you want PhotoStructure to run as. # Unfortunately this doesn't seem to work on QNAP. Omitting # this parameter will make your library and contents be owned by root, # which stinks. If you can get this working, please email us! # user: 1000:100 volumes: # This 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. It needs to already exist! # (use mkdir -p as the user that runs PhotoStructure) - /share/CACHEDEV3_DATA/photostructure/library:/ps/library # < CHANGE THIS LINE OK # This 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. - /tmp/photostructure-tmp:/ps/tmp # This directory stores your "system settings". It needs to already exist! # (use mkdir -p as the user that runs PhotoStructure) - /share/homes/jumanjimanji/.photostructure:/ps/config # < CHANGE THIS LINE OK # This directory stores PhotoStructure logfiles. It needs to already exist! # (use mkdir -p as the user that runs PhotoStructure) - /share/homes/jumanjimanji/.photostructure-logs:/ps/logs # < CHANGE THIS LINE OK # Example additional directories to import into your library. # Add as many as you'd like. # You can set the mount point to anything like /media, or /pictures, ... # (the name doesn't matter, as long as it is unique, # and not in a system directory, like /usr/lib) - /share/CACHEDEV3_DATA/photos:/pictures # < CHANGE THIS LINE OK # Add more lines like the one above to scan additional directories. ports: - 1787:1787/tcp environment: - "PS_IS_DOCKER=1" - "PUID=1000" # < CHANGE THIS LINE to match the userid you want PhotoStructure to run under OK - "PGID=100" # < CHANGE THIS LINE to match the groupid you want PhotoStructure to run under OK 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"