Error can't create or write into the data directory

Hello, I am very new to Nextcloud and working on setting up my first instance. I have followed the instructions on the website, but I am unable to use my nfs share as the data directory. When I mount the directory in Ubuntu with mount.nfs 192.168.X.X:/path/to/share /var/www/nextcloud/data/ it changes the user and group to nobody:nogroup and www-data can’t read or write to it. Any help would be greatly appreciated.