Skip to content

Latest commit

 

History

History
54 lines (32 loc) · 1.55 KB

README.md

File metadata and controls

54 lines (32 loc) · 1.55 KB

Simple docker environment for Magento Open Source 2.3.7

About

This is a simple docker compose which sets up the absolute minimum environment dependencies for a Magento 2.3.7 installation.

  • Designed as a base to be extended for other purposes.
  • Not designed for production. Does not set up SSL on nginx or ElasticSearch. Does not set up SMTP.
  • This repository will not support other Magento versions, only Magento 2.3.7.

The environment consists of:

  • PHP 7.4 and composer v2
  • nginx 1.24
  • mysql 5.7
  • ElasticSearch 7.6.2

The Magento root is by default under ./src. You can change this from .env.

Data from MySQL and ElasticSearch will be persisted under ./data. Can be changed in .env.

Only the nginx port 80 is exposed to the host. Stop your web server before starting this one.

Configuration files

The project sets basic defaults without making assumptions about your preferences. Please review and update the following files directly:

.env
php/auth.json
php/php.ini
nginx/settings.conf

Start the services

docker-compose up -d

Install Magento

The image does not install Magento by default, you need to manually install it with:

docker exec magento237_php install-magento

This will execute the script under ./php/install-magento.sh inside the php container.

Access a shell

docker exec -it magento237_php bash

composer v2 is available in the container for use.

MacOS users

Make sure to enable virtiofs for performance

https://www.docker.com/blog/speed-boost-achievement-unlocked-on-docker-desktop-4-6-for-mac/