Keep docker data persistence on NFS share

Hi
I’m trying keep my data in NFS share and run the container from host-01 and entering data then shut it down and run it from host-02 , I’m expecting to see the data I enetered before but that not happinng every time it spin new container with NO DATA
NFS share is on SAN and I map it to both host-01 and host-02 and I can see data from both hosts
If I run the same container locally data is persistence
here is compose file for which keep data persistence but locally

here is compose file with NFS share which does not keep the data even if you run it from the same host

Hello asiddig
please refer to this link to create a docker NFS volume.

Thanks,
KodeKloud Support