wambo/dockerize-magento1

Docker infrastructure defintions for Magento 1


License
Apache-2.0

Documentation

Dockerize Magento 1

A composer package for dockerizing your Magento 1.9.x

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.

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:

  • 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:

    {
    	"extra":{
    		"magento-deploystrategy": "symlink",
            "magento-deploystrategy-overwrite": {
                "wambo/dockerize-magento1": "copy"
            }
    	}
    }

Add wambo/dockerize-magento1 to your Magento 1 project:

composer require wambo/dockerize-magento1

Choose a database name and the passwords for the root user and shop user in the .env file:

DATABASE_ROOT_PASSWORD=rootUserPassword68J49AC2224U3n9
DATABASE_USER=magento
DATABASE_PASSWORD=magentoUserPassword7pJ344229w6V6d6
DATABASE_NAME=magento1dockerized

Build and start the docker containers:

docker-compose up -d

Software Requirements

For Linux users you must have a recent version of docker and docker-compose installed.

If you are a Mac or Windows user, use Docker for Mac or Docker for Windows:

Licensing

dockerize-magento1 is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.

Related projects