A Docker build specifically for Magento that utilizes Alpine images for optimal performance.
- PHP 7.4 and Nginx.
- XDebug - Debug,Profile,Coverage out of the box.
- MySQL 8.0.
- Elasticsearch 7.
- Mailhog for SMTP.
Clone the Repo into your Magento project and configuration.
git submodule add git@github.com:s5k/magento-docker.git docker
cd docker
cp .env.example .envEdit your domain in field server_name at file:
nginx/conf/magento-2.confStart the containers
docker-compose up -dEdit your domain in /etc/hosts:
127.0.0.1 yourdomain.localCreate/import database.
Configure Elasticsearch, table core_config_data with path column catalog/search/elasticsearch7_server_hostname and change value column to:
elasticsearchIf you would like to access the php-docker terminal:
docker-compose exec -it php shI would be grateful if you would like to contribute to my project. Please let me know if you are interested. Thank you.
MIT
Happy Coding!