Docker Stack with Magento 2 latest installer. Containers: Varnish, Nginx, PHP, Opensearch, MariaDB, Redis, Mailhog, RabbitMQ, Watchtower. One Stack for all Projects by adjusting .env file
Docker containers: Varnish, Nginx, PHP, Opensearch, MariaDB, Redis, Mailhog, RabbitMQ, Watchtower using sockets instead of TCP/IP for redis sessions and MySQL
RabbitMQ, MailHog, Watchtower are commented out of the docker-compose.yml to run projects parallel you need to add a proxy like Traefik or nginx-proxy
git clone https://github.com/aliuosio/mage2.docker.git
Fresh Installation (latest magento 2 version) or your running project when located in your filesystem
cd mage2.docker
chmod +x bin/*
bin/install
with
bin/install config
you can use prompts to configure install (USING the command with config IS BUGGY. FEEL FREE TO CONRIBUTE)
use .env to change values after installation and activate on restart of containers
http://localhost/admin
User: mage2_admin
Password: mage2_admin123#T
http://localhost
bin/start
bin/sample-data
docker exec -it mage2_php bash
bin/install
script configures the default magento 2.4.6 mail settings to run with mailhog
Mail Client
http://localhost:8025
bin/install config
bin/install
bin/install config
If you encounter any problems or bugs, please create an issue on GitHub.
Please Contribute by creating a fork of this repository.
Follow the instructions here: https://help.github.com/articles/fork-a-repo/