Home

Awesome

Magento 2

Magento 2 Docker to Development

Apache 2.4 + PHP 7.1 + OPCache + MariaDB + N98 Magerun 2 + XDebug + Redis

Build Status Docker Build Docker Pulls Docker Starts Build Status Releases

Requirements

MacOS:

Install Docker, Docker-compose and Docker-sync.

Windows:

Install Docker, Docker-compose and Docker-sync.

Linux:

Install Docker and Docker-compose.

How to use

Execute in your terminal, change the MYMAGENTO2 to use the name of your project:

curl -s https://raw.githubusercontent.com/clean-docker/Magento2/master/init | bash -s MYMAGENTO2 clone

If you want to install the Magento 2, use like that:

cd MYMAGENTO2
./shell
rm index.php
install-magento2

You can specify the version that want install (e.g. install-magento2 2.2).

Panels

Enjoy your new panels!

Web server: http://localhost/

PHPMyAdmin: http://localhost:8080

Local emails: http://localhost:8025

Features commands

CommandsDescriptionOptions & Examples
./initIf you didn't use the CURL setup command above, please use this command changing the name of the project../init MYMAGENTO2
./startIf you continuing not using the CURL you can start your container manually
./stopStop your project containers
./killStops containers and removes containers, networks, volumes, and images created to the specific project
./shellAccess your container./shell root
./magentoUse the power of the Magento CLI
./n98Use the Magerun commands as you want
./grunt-initPrepare to use Grunt
./gruntUse Grunt specifically in your theme or completely, it'll do the deploy and the watcher../grunt luma
./xdebugEnable / Disable the XDebug
./composerUse Composer commands./composer update

Elasticsearch

To use elastic search you can use this command below:

$ docker-compose -f docker-compose.yml -f docker-compose.elasticsearch.yml up

or to run in the background using detached mode

$ docker-compose -f docker-compose.yml -f docker-compose.elasticsearch.yml up -d

Elasticsearch: http://localhost:9200

License

MIT © 2018 Rafael Corrêa Gomes and contributors.