Skip to content

Magento 2.4.0 Apache 2.4, PHP 7.3 MariaDB 10.4.16 Elasticsearch 7.6.0 + Varnish 6.4.0

License

Notifications You must be signed in to change notification settings

alik90/docker-magento2

 
 

Repository files navigation

Magento Commerce

Magento 2 Docker to Development

Magento 2.4.0 + Apache 2.4 + PHP 7.3 + MariaDB 10.4.13 + Elasticsearch 7.6.0 + Varnish 6.4.0 + Redis + OPCache + N98 Magerun 2 + XDebug

Requirements

Linux:

Install Docker and Docker-compose.

Before start

Note that for Elasticsearch you need at least 262144 memory.

To check:

more /proc/sys/vm/max_map_count

The vm.max_map_count setting should be set permanently in /etc/sysctl.conf:

vm.max_map_count=262144

After set run:

sudo sysctl -p

How to use

Change the MAGENTO2 to your project's name and run:

curl -s https://raw.githubusercontent.com/echo-magento/docker-magento2/master/init | bash -s MAGENTO2  clone

To install the latest version of Magento 2:

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

If you don't want to use Varnish and Elasticsearch use docker-compose.light.yml

Panels

Web server: https://localhost/

Local emails: https://localhost: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
./magento Use the power of the Magento CLI
./n98 Use the Magerun commands as you want
./grunt-init Prepare to use Grunt
./grunt Use Grunt specifically in your theme or completely, it'll do the deploy and the watcher. ./grunt luma
./xdebug Enable / Disable the XDebug
./composer Use Composer commands ./composer update

About

Magento 2.4.0 Apache 2.4, PHP 7.3 MariaDB 10.4.16 Elasticsearch 7.6.0 + Varnish 6.4.0

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 31.8%
  • VCL 28.5%
  • Shell 22.4%
  • Dockerfile 17.3%