A collection of build configurations to emulate Magento Cloud environment locally. Includes next services:
- PHP CLI
- PHP FPM
- NGINX 1.9+
- Redis
- Varnish
https://hub.docker.com/r/magento/
Inspired by meanbee/docker-magento2
- To be able to use this Docker configuration, you must have cloned Magento Cloud project
- Follow instruction on DevDocs
To generate configuration for new version of PHP, run next command:
php ./bin/mcd generate:php <version>
Where:
version
: Version of PHP to be generated
docker-compose run cli bash
docker-compose run cli magento-command
docker-compose run cli ece-command
To import DB dump, place it into the root of your project as dump.sql
and extend db
container configuration as follows:
db:
image: 'mariadb:10'
ports:
- 3306
volumes_from:
- dbdata
volumes:
- ./dump.sql:/docker-entrypoint-initdb.d/dump.sql