HomeContact
Computerz
Installing Magento2 with docker
René Dohmen
October 03, 2017
1 min

This is the second post in a series of post describing how to run Magento via Docker on Mac OS.

Setting up a dockerized Magento2 is easy. Magento also provides a dev box, but this post focuses on having a production grade Magento ready for swarm deployment, with some scalability features so you can tweak your production stack where needed.

The hardest part was acquiring a project to deploy. For that you need a box running php/composer etc. I used the vagrant box from part 1 (the one without Ansible) to create a new empty Magento2 project with:

You could of course also used the dev box docker from Magento itself and start it with a folder mounted: so you can run the command from inside a docker.

Note: Remember to disable xdebug when you are building for production.

Now follow the instructions from: https://github.com/fballiano/docker-magento2

When the docker is started you can use the magento project folder for it’s data.

Steps:

For dev: Dev box from Magento: had to edit docker-compose magento version 2.1.9 instead of 2.1.8 ./m2devbox-init.sh To open installed magento go to http://127.0.0.1:32771, admin area: http://127.0.0.1:32771/admin, login: admin, password: admin123


Related Posts

Working with git submodules
October 15, 2023
3 min
© 2024, All Rights Reserved.
Powered by formatics

Quick Links

Advertise with usAbout UsContact Us

Social Media