Dockerize Magento 1
A composer package for dockerizing your Magento 1.9.x, (*1)
The composer package wambo/dockerize-magento1 adds Docker and Docker Compose files to your Magento 1 project so you can run your Magento 1 shop without having to install Apache/Nginx, MySQL or PHP on your system., (*2)
Installation
Make sure you have the right deploy strategy for your project. Because docker will not work if your docker-compose.yml is just a symlink:, (*3)
- If you use the "copy" strategy, you don't have to change anything.
-
If you use the default "symlink" strategy you must create an exception for wambo/dockerize-magento1
in your composer.json:, (*4)
{
"extra":{
"magento-deploystrategy": "symlink",
"magento-deploystrategy-overwrite": {
"wambo/dockerize-magento1": "copy"
}
}
}
Add wambo/dockerize-magento1
to your Magento 1 project:, (*5)
composer require wambo/dockerize-magento1
Choose a database name and the passwords for the root user and shop user in the .env
file:, (*6)
DATABASE_ROOT_PASSWORD=rootUserPassword68J49AC2224U3n9
DATABASE_USER=magento
DATABASE_PASSWORD=magentoUserPassword7pJ344229w6V6d6
DATABASE_NAME=magento1dockerized
Build and start the docker containers:, (*7)
docker-compose up -d
Software Requirements
For Linux users you must have a recent version of docker and docker-compose installed., (*8)
If you are a Mac or Windows user, use Docker for Mac or Docker for Windows:, (*9)
Licensing
dockerize-magento1 is licensed under the Apache License, Version 2.0.
See LICENSE for the full license text., (*10)