Help using NFS for data

Nextcloud version (eg, 10.0.2):11
Operating system and version (eg, Ubuntu 16.04):CentOS7
Apache or nginx version (eg, Apache 2.4.25): Apache
PHP version (eg, 5.6):7
Is this the first time you’ve seen this error and can you replicate it?:Yes

The issue you are facing:
I have my nfs hosted on the same machine that my next cloud server is on(no vm) I’m trying to mount my nfs share to my data directory for next cloud, but every time I do it changes the owner and group of the directory to root instead of keeping it as apache.