Source: paulreaney.medium.com

laravel docker for mac performance impr
After moving my laravel application over to docker I noticed a huge performance impact. One of the pages had 5 api requests on load each taking around 2s, which was about 20x slower than running the application on my local machine. I use a mac for web development and so there is always going to be a performance cost when using docker for development.

You can disable debugbar in the .env file: Volumes are the preferred way to persist data generated from and used by docker containers. Docker for Mac allows you to use configuration options for volumes to improve the performance — by default Docker mounts each volume using a consistent option.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Community Partners