Mount NFS Share to Container

docker-compose.yml
version: "2.3"
services:
  app:
    image: myimage
    volumes:
      - nfs:/container/path
....

volumes:
  nfs:
    driver_opts:
      type: "nfs"
      o: addr=$NFSSERV,nfsvers=4
      device: $NFSPATH
.env
NFSSERV=fully.qualified.domain or IP address of NFS server
$NFSPATH=:/Path/To/NFS/Share

Last updated