Improve your app performance with Docker for Mac

The problem

The solution

docker-compose -f docker-compose.yml -f darwin.yml up -d
...
volumes:
nfs-volume:
driver: local
name: nfs-volume
driver_opts:
type: nfs
o: addr=host.docker.internal,rw,noatime,nolock,nodev,intr,rsize=32768,wsize=32768,nfsvers=3
device: ":$PWD"
...
...
tmpfs:
- /path/to/cache:uid=48,gid=48
- /path/to/symfony/var/cache:uid=48,gid=48
...
...
mysql:
volumes:
- mysql:/var/lib/mysql:delegated
...
volumes:
mysql:
driver: local
name: mysql
...
...
volumes:
- symfony-vendor:/path/to/symfony/vendor:delegated
- vendor:/path/app/vendor:delegated
...
...
tmpfs:
- /path/to/symfony/var/log:uid=48,gid=48
...

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store