Nextcloud uses the www-data user internally. Id is 33. You should be able to "chown 33 dirname" on the nfs server. That may work?
post
You need to allow nextcloud to control the file permissions. You can do this with the no_root_squash option in the /etc config file
Try telling Docker its rw explicitly:
- /mnt/photos:/photos:rw
It should be rw by default but I can't see what else could be happening. What account runs docker? What account runs nextcloud inside the container?
how can i check which accounts are used? I think my normal user account sets up docker, with uid & gid = 1000. I don't think i created an account in the container so probably root.
The official NC docker container uses the "www-data" internally to run the services. This will get important if you ever want to run tasks via "docker compose exec".
When I run: docker exec -it nextcloud bash I get: root@nextcloud:/var/www/html#, does this mean it uses www?
all 14 comments