Description - Heyfara/sf-docker GitHub Wiki

The project is composed of 3 main elements :

  1. docker-compose.yml : docker-compose configuration file.
  2. /dockerfiles : used to store the dockerfiles of the different containers.
  3. /volumes used to store your persistent data.

docker-compose.yml

This file is used to describe the structure and links between containers. For more information about this file see the documentation.

/dockerfiles

This folder is used to organize the different dockerfiles used in this project.

/volumes

This folder is used to store your persistent data. For example, it contains a mysql/ folder that will be used by the mysql container to store the database. The first time you start the containers, the folder is empty. But when you create your first database, everything will be added inside this folder.

All your Symfony files should be put in the /volumes/www/ folder which is mapped to the root folder of the Apache container (/var/www/html/).

Containers

  • MySQL
  • Apache-PHP

The MySQL container runs the mysql process. The Apache-PHP container runs the Apache/PHP processes. It is linked to the mysql container so you can easily use the database connection in your symfony application.