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
...

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to Pass AWS Certified Cloud Practitioner with Flying Colors

From Web 1.0 to Web 3.0

Future Digital Shaper creates apps that solve common student dorm problems (CBS Laundry Widget) or…

Ubiquiti UniFi Protect G4 Doorbell

Ubiquiti UniFi Protect G4 Doorbell

#100DaysOfCode Day 16: Developing a Twitter Client using Waterfall Development Cycle (Part 1)

Playsms With HTTP

Babylon is Rising

Install Zimbra as Local Project & IntelliJ Remote Debug

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
Albert Campderros

Albert Campderros

More from Medium

How Laravel Should be The Preferred Choice for Web Development in 2022?

Future of Laravel Development and Trends in 2022.

Laravel | How to extend Notifications and use your custom fields

Stripe ACH implementation in laravel