Configure your Symfony 5 local dev env with Docker

Webcu • September 15, 2020

dev_env symfony docker

Requirements

Installation

Docker Image details

To simplify the process of the creation of the Dev Env for Symfony using Docker I created an image based on the Official PHP images that include some functionalities/extensions needed/recommended for Symfony 5. Those functionalities/extensions are:

You can find this image in Docker Hub. To use it you need to reference it in your docker-compose.yml file

services:
    php:
        image: webcu/symfony-installer
        ...

DockerFile tips related to PHP

References