Skip to content

Instantly share code, notes, and snippets.

@dnaprawa
Last active May 23, 2020 08:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnaprawa/85b8900352a965552f4f82c3b3ac74c7 to your computer and use it in GitHub Desktop.
Save dnaprawa/85b8900352a965552f4f82c3b3ac74c7 to your computer and use it in GitHub Desktop.
Docker Desktop for Mac - bind mounts optimization
---
version: '3'
services:
myapp:
volumes:
- 'nfsmount:<CONATINER_PATH_HERE>'
volumes:
nfsmount:
driver: local
driver_opts:
type: nfs
o: addr=host.docker.internal,rw,nolock,hard,nointr,nfsvers=3
device: ":<HOST_PATH_HERE>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment