Skip to content

Docker container based on CentOS latest with Apache 2.4, PHP 7.0, MySQL 5.6

Notifications You must be signed in to change notification settings

iskliarenko/spartadocker

Repository files navigation

LAMP Docker Environment for Magento1/2

Two simple docker environments for Magento1/2 based on CentOS 7 + LAMP stack (PHP 7.0 for M2 and PHP 5.5 for M1) with cron and mailcatcher. All services are controlled by supervisord.

Quick Start

Download

Via GIT:

git clone [email protected]:iskliarenko/spartadocker.git

or you can download zip archive from:

https://github.com/iskliarenko/spartadocker/archive/master.zip

Build and run

  • Generate your Magento Access Keys

  • Copy auth.json cp conf/magento/auth.json.example conf/magento/auth.json

  • Update auth.json by your credentials

  • Build and run docker container for Magento2 by using next command:

docker-compose up

and for Magento1:

docker-compose -f docker-compose-m1.yml up

After build (5-15 minutes at first time) your environment will be ready and available here:

The next step you can sign into container and install Magento or deploy the existing dumps.

Access credentials

SSH: users

  • root with password root
  • apache with password apache or using imported key: conf/magento/docker.pem

MySQL: user root with blank password or user magento with password 123123q

Mailcatcher interface is accessible without authorization.

Tips

To restart the services (httpd,mysqld,crond,mailcatcher) you can use supervisorctl, for example: supervisorctl restart httpd

To rebuild the container completely: docker-compose build or for Magento1: docker-compose -f docker-compose-m1.yml build

About

Docker container based on CentOS latest with Apache 2.4, PHP 7.0, MySQL 5.6

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •