Sign inSign up

adighe/magento2

By adighe

•Updated over 9 years ago

Magento 2 Development Environment on PHP 7, Apache and Centos 7

Image
0

10K+

adighe/magento2 repository overview

⁠Web development container for Magento 2 configured to run on PHP7, Apache and Centos 7

⁠Includes composer and git, Magento2 source code and Magento2 Sample Data

⁠Setup instructions

For setting up the environment please use the following Docker Compose File⁠ and fill in the following parameters

MAGENTO_PUBLIC_KEY MAGENTO_PRIVATE_KEY MAGENTO_EDITION MAGENTO_VERSION ADMIN_FIRSTNAME ADMIN_LASTNAME ADMIN_USER ADMIN_PASSWORD ADMIN_EMAIL ADMIN_BACKEND DB_HOST DB_NAME SAMPLE_DATA

Afterwards just run docker-compose up -d

The Magento 2 code is downloaded automatically using composer and installed in the /var/www/html directory The Magento app directory is added as a volume for your custom code Sample data can be installed by using the SAMPLE_DATA environment variable

⁠FAQ

  • Magento 2.1.6 has an image resize bug causing images to not be generated correctly for specific products
  • Magento 2 has issues with loggin in from localhost. You can fix this by changing the Unsecure Base Url for your store to your IP:PORT (127.0.0.1:1001) instead of localhost:PORT

Connect to the container as root using: docker exec -it magento2 sh

Connect to the container as apache docker exec -it --user apache magento2 sh

Tag summary

Content type

Image

Digest

Size

392.4 MB

Last updated

over 9 years ago

docker pull adighe/magento2