Docker Compose for Symfony
1 - Create the symfony project:
composer create-project symfony/website-skeleton app
2 - Change your .env mysql credentials on app/.env
DATABASE_URL=mysql://user:password@127.0.0.1:3306/app
2 - Start the docker compose:
docker-compose up -d
Note: First time will take a few minutes to download all the containers.
The application is listening the port :8888. You can see the application running in http://localhost:8888
Check all the containers:
docker-compose ps
Entering the container:
docker exec -it docker-symfony_php_1 /bin/sh