In Docker directory, run the commands :
$ docker build -t cmeneses/apache_php:2-5.6 ./apache2_php5.6/
$ docker build -t cmeneses/data_application ./data_application/
$ docker build -t cmeneses/data_mysql ./data_mysql/
$ docker build -t cmeneses/mysql:5.7 ./mysql5.7/
$ docker build -t cmeneses/phpmyadmin:4.6 ./phpmyadmin4.6/You must modify volumes for test_application and test_data containers with your own directory, for example :
test_application:
image: cmeneses/data_application
volumes:
- /home/Test-Docker-Sf/Symfony:/var/www/html
test_data:
image: cmeneses/data_mysql
volumes:
- /home/Test-Docker-Sf/Data:/var/lib/mysql In Symfony directory, run the command :
$ docker-compose up -dTo get cmeneses/apache_php container ID, run the command :
$ docker psWith the ID, you can use composer to download vendors :
$ docker exec 22e642982db4 composer installSymfony application : http://localhost:60000/web/app_dev.php
PHPMyAdmin : http://localhost:60002
MySQL : http://localhost:60001
In Symfony directory, run the command :
$ docker-compose stop