On my Mac, docker daemon was setup to use 6G of Ram and at least 2 CPU cores
# make
- Put any sql dump file ( *.sql ) in a specific folder (i.e. ./data/dev/db) and update docker-compose-dev.yml line 16 to target this folder
- Put media resource in in a specific folder (i.e. ./data/dev/media) and update docker-compose-dev.yml file to add a volume for each media subfolder (line 92)
-
Put your mangento project in your favorite folder
-
run composer install from this folder
-
update docker-compose-dev.yml to add a volume targeting the magento project folder (line 91)
-
then run start-dev.sh
-
after start-up, go to http://localhost
-
to get access to cli :
# docker exec -it <magento-node-container-name> bash # bin/magento xyz
- Put any sql dump file ( *.sql ) ./data/prod/db
- Put media resource in ./data/prod/media and update docker-compose-dev.yml file to add a volume for each media subfolder (line 92)
-
as an example, put your magento project into ./docker/smileshop/src . For cronjob, same stuff but with ./docker/smileshop/cron
-
run :
# make smileshop
-
to start it locally :
# docker-compose -f ./docker-compose-prod.yml up
# docker-compose down -v
# docker exec -it <magento container> bash
# bin/magento indexer:reindex
# composer config --global http-basic.repo.magento.com login password