Public Repository

Last pushed: 3 months ago
Short Description
Magento 2 Development environment inspired from Magento Dev Box
Full Description

Web development container for Magento 2 inspired from the official Magento Dev Box configured to run on PHP7 FPM, Apache and Ubuntu


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 login 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_ubuntu sh

Connect to the container as www-data (magento shell commands should be run as this user)
docker exec -it --user www-data magento2_ubuntu sh

Docker Pull Command
Owner
adighe

Comments (0)