Mage2click toolset is a system-wide command-line tool for creating and managing simultaneously running docker Magento projects with insanely easy installation and configuration. It includes plenty of configurable services and useful commands for developing and project orchestration right out of the box. On macOS systems, mutagen.io tool will be bundled in the toolset for high-performance files sync between host and docker containers.
This setup assumes you are running Docker on a computer with at least 6GB of allocated RAM, a dual-core, and an SSD hard drive.
This configuration has been tested on macOS. Linux based systems still require testing. Any testing are welcomed!
To install Mage2click toolset to your system, simply run command below.
curl -sL raw.githubusercontent.com/mage2click/m2c/master/get | bashOr shortened version of above.
curl -sL get.m2c.run | bashAfter toolset is installed, you will have the next tools available locally:
- Traefik - https://traefik.m2c.test
- Portainer - https://portainer.m2c.test
- Mailhog - https://mailhog.m2c.test
- Dnsmasq - https://dnsmasq.m2c.test
Toolset local homepage with links to all tools listed above - https://m2c.test
All docker images with services listed above must be active. These services are configured to start automatically and should not be stopped. Without active Traefik and Dnsmasq, m2c backed projects can't work properly.
Most of services are available with version on your choice.
All docker Magento projects initialized with:
- Nginx
- PHP-FPM
- MariaDB
- Redis
- Xdebug
And optionally available:
- Varnish
- Elasticsearch
- phpMyadmin
- RabbitMQ
After toolset is installed on your system, you may use it to initialize new or existing magento projects.
To get a list of all commands and usage information, run m2c or m2c --help which is equivalent.
To initialize project, open the desired directory with terminal and run
m2c initThis command will launch project initialization in interactive mode. Simply follow the steps to configure the desired Docker Magento development environment.
If at least one command argument is defined, automated setup will be started. All undefined parameters will be set with default values.
m2c init [parameters...] [flags...]To get a list of all available parameters and flags for project configuration, run
m2c init --help