Do not use NFS as a data path for Elasticsearch. It is not supported and known to be problematic. Also, performance will be very bad.
That being said, if you which to use another type of storage you need to mount a volume in /use/share/elasticsearch/data
which is the data path used by the Docker image.