version: "2.3"
services:
app:
image: myimage
volumes:
- nfs:/container/path
....
volumes:
nfs:
driver_opts:
type: "nfs"
o: addr=$NFSSERV,nfsvers=4
device: $NFSPATH
NFSSERV=fully.qualified.domain or IP address of NFS server
$NFSPATH=:/Path/To/NFS/Share