I am using the docker image of nextcloud on my raspberry pi 3 like this:
docker run -d -p 4443:4443 -p 443:443 -p 99:80 -v /media/usb1/nextcloud:/var/www/html/data --name nextcloud nextcloud
I want to store my datas not on the sd card but on a usb stick. This usb stick is mounted as /media/usb1/
And this works, i can rech the web-gui of nextcloud, but there is a error message, that i have to change the permission of the data folder to 0770. But which one? I’m confused, because i use docker. I tried to change the permission on the host (/media/usb1/) and on the docker container (/var/www/html/data)
This is the code:
chmod 0770 /var/www/html/data
chmod 0770 /media/usb1
This is not working, its still drwxrwxrwx on both directorys.
Also, whats important: /media/usb1/ is also my share-folder for my samba. Basicaly i want to store my nextcloud files right into this samba share.
btw, this is my /etc/fstab:
/dev/sda1 /media/usb1 ntfs auto,nofail,sync,users,rw 0 0