How to integrate Docker into a Symfony-based project
Description of the steps to follow to dockerize a Symfony project that uses Nginx, PHP-FPM and MySQL
If you have worked with projects with a certain level of complexity, you have probably heard of Docker. In short, this tool allows us to standardize the software used in each project so that it works the same regardless of the machine that hosts it.
That is, what Docker provides us with is a layer of abstraction on the software used through the concept of “container” which simplifies the creation, deployment and execution of our applications. Thanks to these containers we can forget about one of the most recurrent programming problems:
“It works on my computer”
Since they are packaged the dependencies of our application avoiding having to install them manually every time we change machines.
What we will do in this article will be to learn how to integrate Docker into a Symfony project, so that we can run it on any computer or server. To do this, it will be enough to have Docker installed where we want to execute the project, something you can do from the following link: