
In the symfony-docker-test folder, run: symfony new app The Symfony app will be stored in an app folder and the project file structure will look like this: 📂 symfony-docker-test A simple container for the Composer binary.The example project will set up a very simple Symfony app with a typical Docker setup with the following containers: The performance tests have been measured on a 2016 MacBook Pro and are intended to show the variations depending on the solutions. If you already have a Symfony project, you can skip directly to the solutions. We are first going to set up a simple Symfony project to evaluate how the exposed solutions perform. This article will explain several ways to make your Symfony runnable on Docker for Mac.
#Docker for mac performance for mac#
However, you probably have noticed that running a Symfony app with Docker for Mac is very slow, almost unusable however fast is your Mac. Much better performance than a VM, at least on Linux (that's the point of this article).Ease of use (adding any technical stack to the project is very easy, with just a few lines of configuration).Same, versioned and deterministic configuration accross environments and developers.

UPDATE (): article has been updated for docker-sync 0.4.ĭocker is an amazing tool to set up your whole development platform locally (and elsewhere too).Īs you may know, it has many benefits, including: Scroll Downģ ways to get Docker for Mac faster on your Symfony app.

Michaël Perrin Sustainable web development.
