Magento version: 1.9.2.4
Built on alexcheng's image, added sendmail support. For development, fun and test purpose only, it lacks essential support for production deployment. (The true story is that a friend of mine asked for a hand out with some magento crappy things, and I was curious to try out docker.)
- A
Dockerfilewhich output image is pushed tosekmo/magentoon dockerhub (it runs supervisor to start apache and sendmail on the same container) - A
htdocsfolder (stuffed with Magento files) and a (empty)mysqlfolder for persistence - A
docker-compose.ymlconf file that runs the imagessekmo/magentoandmysql 5.6.23 - A
host-set.shscript which is run by supervisor (it just sets the /etc/hosts file on the magento container to run sendmail) - An
envfile which contains some environments variable (mysql user and password) - A
usr_local_etc_phpdirectory with a workingphp.ini
Clone the repo, cd to the directory and run docker-compose to start the apache and mysql containers in one shot
docker-compose up -dStop the containers with
docker-compose downWhile volume containers should be used for persistence, I preferred to keep things easy and just link the htdocs and mysql folder to the docker host.
I exposed the 3306 port of the mysql container just because it's handy using something like Sequel Pro to connect to the container. (it's not required by the magento container since it's linked through the docker internal network)