Docker Image to Magento 2 local development in Mac, Linux and Windows
Shell PHP
Latest commit c68f167 Feb 13, 2017 @rafaelstz rafaelstz committed on GitHub PHP Version
Failed to load latest commit information.
bin Update PHP and bugfix Jan 14, 2017
conf Improve the doc and add bin files Jan 12, 2017
magento2 Improve the doc and add bin files Jan 12, 2017
.gitignore Improve the doc and add bin files Jan 12, 2017
.travis.yml Fix CI Jan 14, 2017
Dockerfile Less RUNs Jan 24, 2017 PHP Version Feb 13, 2017
docker-compose.yml Composer directory Jan 18, 2017

Magento 2

Magento 2 Docker to Development

Apache 2.4 + PHP 7.0.15 + OPCache + MariaDB + Magerun + DevAlias

Build Status Build Status

This cluster ready docker-compose infrastructure.

Copy and run

git clone m2-docker &&
cd m2-docker &&
docker-compose up -d ;
docker ps

Projects folder

There is a folder in this project calling ./magento2, this folder is the folder /var/www/html/ inside your container, is the folder that you will work on.

Access the container Docker

To access in you browser you can use http://localhost ( I recommend change your /etc/hosts ).

docker exec -ti m2docker_apache_1 bash

Install Magento 2

You can access in this URL http://localhost/magento2/ after installed with this commands below.

composer create-project --repository-url= magento/project-community-edition magento2

Access the MySQL

In your terminal out of the container run this command.

mysql -u root -proot -h -P 3300

To know what is the IP to use in the Magento 2 installation (Database Server Host), you can use this command out the container.

docker inspect m2docker_db_1 | grep IPAddress


MIT © 2017 Rafael Corrêa Gomes and contributors.