Sign inSign up

sfoxdev/magento

By sfoxdev

Updated about 9 years ago

Magento 2.1.8 container based on Ubuntu 16.04 + Apache 2.4 + PHP 7.0.22

Image
0

1.0K

sfoxdev/magento repository overview

Magento

Magento 2.1.8 container based on Ubuntu 16.04 + Apache 2.4 + PHP 7.0.22

Docker Build Status Docker Build Status Docker Build Status Docker Build Status

Usage

Prepare needed files and build container
  1. Put your webstore files into /srv/magento folder

  2. Using CLI mysql-client make dump of database and put it in conf/root folder with name magento2_dev.sql (use only cli command !!!)

mysqldump -uMYSQL_USER -pMYSQL_PASSWORD -hMYSQL_HOST MYSQL_DATABASE > /root/magento2_dev.sql
  1. Change setting in docker-compose.yml file, also change keys to yours in conf/root/.composer/auth.json

  2. Build and run container

docker-compose -d --build up
  1. After container starts check configuration process until you see message: -= Starting Apache =-
docker logs magento
  1. Visit website
Manual build and run container
docker build -t sfoxdev/magento .
docker run -d -v /srv/magento:/var/www/html-tmp -p 80:80 --name magento sfoxdev/magento

Tag summary

Content type

Image

Digest

Size

208.8 MB

Last updated

about 9 years ago

docker pull sfoxdev/magento