Nextcloud main data on NAS?


Is it possible to have the Nextcloud data directory on a separate network storage? If so, what’s the best way to set it up?

I have a server running a hypervisor where I have network storage/media server in a VM, and I’d like to run Nextcloud on a separate Linux container. Would it be good idea to mount an NFS share for the data directory?