Magento 2.1.8 container based on Ubuntu 16.04 + Apache 2.4 + PHP 7.0.22
1.0K
Magento 2.1.8 container based on Ubuntu 16.04 + Apache 2.4 + PHP 7.0.22
Put your webstore files into /srv/magento folder
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
Change setting in docker-compose.yml file, also change keys to yours in conf/root/.composer/auth.json
Build and run container
docker-compose -d --build up
-= Starting Apache =-docker logs magento
docker build -t sfoxdev/magento .
docker run -d -v /srv/magento:/var/www/html-tmp -p 80:80 --name magento sfoxdev/magento
Content type
Image
Digest
Size
208.8 MB
Last updated
about 9 years ago
docker pull sfoxdev/magento