Adding file path on Synology #204
-
Hi! Many thanks for your work. I have installed photoview via docker on my synology NAS and it is running well. My NAS contains a folder with all my pictures (/volume1/backup/pictures) but I cannot add this path so photoview can see it. I get this message: Server error: "invalid root path at (userAddRootPath)". I would be grateful for any guidance on how to solve this. Many thanks1 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @zensphinx thank you! volumes:
- api_cache:/app/cache
# Change this to the directory where your photos are located on your server.
# If the photos are located at `/home/user/photos`, then change this value
# to the following: `/home/user/photos:/photos:ro`.
# You can mount multiple paths, if your photos are spread across multiple directories.
- /volume1/backup/pictures:/photos:ro This means that the path |
Beta Was this translation helpful? Give feedback.
Hi @zensphinx thank you!
Because it's running inside a Docker container, you have to write the path from within the container and not the path on the host machine. You have to mount the photos to a path inside the conatiner using Docker volumes. In your
docker-compose.yml
file under volumes make sure your path is mounted properly, something like this