Docker developer's container for Magento 2 (CentOS)
This is a fork of original magento2-docker, but is aimed at hosting developer's environment, rather than just testing functionality.
How to set it up for new Magento2 project (developer's environment)?
Follow Quickstart with Magento 2 guide.
How to use it to host existing Magento 2 installation?
- Run the container from your project's root (see Step 1 in a Quickstart guide above).
- Once in container - import your database.
If you need to modify it - you can create your own image setting this one as a source.
Dockerfilein this case:
FROM asarturas/magento2-docker RUN echo "further customisation"
If a change is generic enough - consider making a pull request or opening an issue ticket here, cheers.
This container is for developer's use only - not for production or pipeline environment.