Skip to content
This repository has been archived by the owner on Feb 19, 2024. It is now read-only.

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

magento-sparta/spartadocker

 
 

Repository files navigation

[ARCHIVED]

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

Create src/pub directory

mkdir -p ./src/pub && echo "<?php phpinfo();" > ./src/pub/index.php

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

Releases

No releases published

Packages

No packages published

Languages

  • Shell 59.2%
  • Dockerfile 40.8%