Hi there,
I was trying to set up nextcloud with data stored on my USB Drive, which is mount with fstab (using UUID) to /media/USBWD/.
Using docker-compose the “/media/USBWD/nextcloudpi/data” folder is bind to the :/data folder in the container. While I can bind other folder to volume of other containers somehow it doesn’t work with ncp.
ls -la in /media/USBWD/nextcloudpi/data:
total 28
drwxr-xr-x 7 root root 4096 Dec 16 23:47 .
drwxrwxr-x 3 furkan furkan 4096 Dec 16 23:32 …
drwxr-xr-x 3 root root 4096 Nov 27 21:57 bin
drwxr-xr-x 5 systemd-resolve systemd-network 4096 Dec 17 04:46 database
drwxr-xr-x 9 root root 4096 Dec 16 23:37 etc
drwxr-xr-x 3 www-data www-data 4096 Dec 17 04:48 ncp
drwxr-x— 13 www-data www-data 4096 Dec 9 19:33 nextcloud
Some infos from the NCP Panel
NextCloudPi version | v1.32.0 |
---|---|
NextCloudPi image | NextCloudPi_docker_11-27-20 |
distribution | Debian GNU/Linux 10 \n \l |
automount | no |
USB devices | sdb |
datadir | /data-ro/nextcloud/data |
data in SD | yes |
data filesystem | overlayfs |
data disk usage | 16G/146G |
rootfs usage | 16G/146G |
swapfile | /swap.img |
dbdir | /data/database |
EDIT:
My fstab entry:
UUID=150d4893-bab5-4794-883b-5555139ca5c4 /media/USBWD/ ext4 defaults
fixed permission now:?
total 28
drwxr-xr-x 7 root root 4096 Dec 16 23:47 .
drwxrwxr-x 3 furkan furkan 4096 Dec 16 23:32 …
drwxr-xr-x 3 root root 4096 Nov 27 21:57 bin
drwxr-xr-x 5 systemd-resolve systemd-network 4096 Dec 17 04:46 database
drwxr-xr-x 9 root root 4096 Dec 16 23:37 etc
drwxr-xr-x 3 www-data www-data 4096 Dec 17 04:48 ncp
drwxr-x— 13 www-data www-data 4096 Dec 9 19:33 nextcloud
thanks for your time