Skip to content

stephansteiner/docker-magento2

 
 

Repository files navigation

Magento 2

Magento 2 Docker

NGINX + PHP 7 + OPCache + Percona + Magerun 2 + XDebug + Redis

Build Status Docker Build Docker Pulls Releases

Requirements

MacOS:

Install Docker and run:

    gem install docker-sync
    brew install unison
    brew install eugenmayer/dockersync/unox

Windows:

Install Docker and Docker-sync.

Linux:

Install Docker and Docker-compose.

How to use?

Automatic method

Just run these commands below in your terminal, change the MYMAGENTO2 to use the name of your project:


curl -s https://raw.githubusercontent.com/Imagination-Media/docker-magento2/master/init | bash -s MYMAGENTO2 clone
cd MYMAGENTO2
rm -rf src/*
./shell install-magento2

Or cloning this repository

You can also clone this repository and run these commands:


./init MYMAGENTO2
rm -rf src/*
./shell install-magento2

Panels

Enjoy your new panels!

Web server: http://dev.local/

PHPMyAdmin: http://dev.local:8080

Local emails: http://dev.local:8025

Features commands

Commands Description Options & Examples
./init If you didn't use the CURL setup command above, please use this command changing the name of the project. ./init MYMAGENTO2
./start If you continuing not using the CURL you can start your container manually
./stop Stop your project containers
./kill Stops containers and removes containers, networks, volumes, and images created to the specific project
./shell Access your container ./shell root or ./shell ls
./magerun Use the Magerun and Magento CLI commands as you want
./xdebug Enable / Disable the XDebug

License

Apache © 2018 Imagination Media and contributors.

About

Docker Magento 2 with NGINX + PHP7

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 52.7%
  • PHP 25.8%
  • Dockerfile 21.5%