- Clone git repo or create new composer project in
./src
cp dev/composer.env.sample dev/composer.env
and input valid Magento credentials and GitHub key
- Replace
magento.docker
with desired domain- Add a corresponding host entry on the host machine for
127.0.0.1 yourdomain.docker
- Add a corresponding host entry on the host machine for
- Replace
{{blakcfireClientId}}
,{{blakcfireClientToken}}
, {{blakcfireServerId}}
,{{blakcfireServerToken}}
with valid Blackfire credentialsXDEBUG_ENABLE=false
to disable xDebugMAGENTO_RUN_MODE=production
to force production mode- PHP versions can be interchanged by updating the build directory for the
app
service
- localhost:1080 Mailcatcher
- localhost:9200 Elasticsearch
- localhost:15672 RabbitMQ Management
- localhost:9306 MariaDB
- localhost:6081 Varnish
cd dev
docker-compose build
- Note: the default project prefix for containers is the directory name. When
using this for multiple projects you should specify the project name via
the
-p
flag or change the name of thedev
directory.
- Note: the default project prefix for containers is the directory name. When
using this for multiple projects you should specify the project name via
the
cd dev
docker-compose exec app magento-installer
cd dev
docker-compose exec app magento-sample-data
cd dev
docker-compose exec app magento {{command}}
or you can enter the container usingdocker-compose exec app bash