Nextcloud - Running as container in CasaOS. Unable to change /Data directory to CIFS mounted Storage on Proxmox host machine

Hi Everyone,

Could someone please help here.

I am able to get the container running perfectly fine if I leave the /data directory in it’s default location but as soon as I try to change it to /mnt/192.168.40.200/usb2tb/NextcloudData:/data in the docker compose it gives me the error in the images attached to this post.

I have tried chown on the directory using the www and www-data commands but as you can see in my passwd file… there is no such user in the docker container.

The error indicates and I believe it is a file permissioning issue but I can’t figure out how to solve it for the life of me.

Help would be greatly appreciated.