I installed PhotoStructure via docker-compose and store my photos + PhotoStructure library remotely on a Synology NAS. The NAS folders are mounted to my Docker host using NFS and I can read/write to the NAS folders directly from the Docker host.
docker-compose up -d successfully starts a healthy PhotoStructure container and I am using
user: 1000:1000 for more security as suggested in the docs. 1000:1000 correctly matches the user and group IDs of my Docker host. However, when I try to finish setup at http://localhost:1787, I get the following error:
Failed to save settings: Error: Could not mkdirp /ps/library/.photostructure
I entered the Docker container to check
/ps folders and see the following permission issue for the
drwxr-xr-x 1 root root 4.0K Jan 25 02:17 . drwxr-xr-x 1 root root 4.0K Jan 25 02:17 .. drwxr-xr-x 1 root root 4.0K Nov 8 23:50 app drwxrwxr-x 4 node node 4.0K Jan 25 02:18 config drwx------ 1 1027 users 1020 Jan 25 01:33 library drwxrwxr-x 3 node node 4.0K Jan 25 02:15 logs drwxrwxr-x 2 node node 4.0K Jan 25 02:14 tmp
user: 1000:1000 fixes the permission issue but I’d like to know how to do this without root for more security.
How can I get this working properly with