DEV Community

Cover image for How to dockerize Symfony (2022)
anastasionico
anastasionico

Posted on

 

How to dockerize Symfony (2022)

In this post, I am going to show you how to set up an entire local environment using Nginx, MySql and Symfony in just a few minutes.

In fact, I use the file displayed here for every project I start.

Let's get started with a question:

How long does it take to make a website?

To answer this question let me tell you a story.

Many years ago I was living in a little village at the border of London (UK).

Almost every evening, after work, I used to go up the hills outside the city center to look at the light of London’s skyscrapers.

My dream was to get a job as a web developer in one of that buildings.

To do so I had two goals:

improve my skills, thus my CV;
display my skills in creating a brand new portfolio website;

The plan worked out very well and after exactly 12 months I was living and working in the heart of London.

Since then many things have changed.

I got new jobs, acquired other skills, and created many connections in the field.

Yet, one thing has stayed the same all this time.

My website has been the same since then.

It only took 5 years but I finally decided to update my personal website.

I’ll do it using Symfony 6 and Docker.

How can you do it too?

Easy answer!

The solution is in this article.

Top comments (0)