Set Up a Magento 2 Development Environment with Docker course image

Set Up a Magento 2 Development Environment with Docker

The easiest way to install, manage & configure a standardized Magento dev environment across your team.

21 lessons

49m

Mark Shust

It can be very difficult to get a Magento 2 development environment setup quickly & easily. With this screencast, you'll understand the basics of configuring and managing a development environment in no time.

At the end of this course you'll have an extremely performant development environment setup that is easy to use, one which you can setup to your exact specifications, and a config you can actually manage yourself. I'll also walk you through setting up Xdebug within PHPStorm, so you can set & debug breakpoints like the master PHP developer you are.

You do not need to understand Docker to use this setup, as simple helper scripts abstract away the complexity and allow you to administer your Magento instance without hassle.

Based on Mark Shust's Docker Configuration for Magento

The most popular development environment for Magento.

Standardize dev environments

When everyone on your team is using a different development environment, things don't run smoothly. Issues within one developer's environment could take many hours or days to diagnose, and throw your entire project off schedule.

By standardizing your entire fleet of developers on a single development environment, you can help achieve parity & consistency across all of your development efforts.

  • Open source

    Full source code is available on GitHub, allowing you to fork the code and modify it for your own project's needs.

Screenshot of Docker Compose

1,000+ stars on GitHub

A large following on GitHub means is a lot of support for the project within the community. This also means that there are more developers finding bugs quickly, and making additional contributions to this project.

M.academy links

“Working through the course videos, and I am blown away.”  

Course curriculum

Video lessons to playback & reference for as many times as you wish.

21 lessons

49m

Project setup

Setup Docker for Mac & configure preferences
Setup Docker for Mac & configure preferences
Setup global Composer auth credentials
Setup global Composer auth credentials
Automated setup for new installs
Automated setup for new installs

Helper scripts

Run CLI commands within containers
Run CLI commands within containers
Stop, start & restart containers
Stop, start & restart containers
Run binaries within containers
Run binaries within containers

Docker filesystem & volumes

Understand volumes & host bind mounts
Understand volumes & host bind mounts
Manage files & folders on containers
Manage files & folders on containers

Customize server configuration

Customize the Nginx configuration
Customize the Nginx configuration
Quickly switch PHP versions
Quickly switch PHP versions
Install extensions & packages
Install extensions & packages
Run additional services as containers
Run additional services as containers
Configure multi-store instances
Configure multi-store instances

PHPStorm & Xdebug

Setup PHPStorm for a Magento Docker project
Setup PHPStorm for a Magento Docker project
Generate XML URNs for a Magento Docker project
Generate XML URNs for a Magento Docker project
Install Xdebug browser plugin
Install Xdebug browser plugin
Enable, disable, & check Xdebug
Enable, disable, & check Xdebug
Configure PHPStorm for Xdebug
Configure PHPStorm for Xdebug
Trigger Xdebug breakpoints with PHPStorm
Trigger Xdebug breakpoints with PHPStorm

Manual setup (optional)

Manual setup for new Magento installs
Manual setup for new Magento installs
Manual setup for an existing Magento instance
Manual setup for an existing Magento instance

Included in the M.academy Library

Learn more about Magento, PHP, Docker, or something entirely new.

Join now

It's completely free to access the M.academy Library. Get additional access to track course progress, leave comments on lessons, join our Slack group, and automatically get access to new lessons in the library.

What's included

  • Track course progress

  • Leave comments on lessons

  • Join the M.academy Slack Group

  • Automatically access new lessons

Completely free

$ 0

Frequently asked questions

Do I need to understand Docker to take this course?
Docker experience is helpful, but definitely not necessary. The bash helper scripts I wrote help abstract away most of the Docker commands, so you can focus on what you do best: programming Magento and getting your storefront up & operational.
Will this work with Mac, Windows & Linux?
The course assumes you are running macOS, but works just fine on Linux with some tweaks. It also works on Windows with WSL 2.
How much does the course cost?
The course is completely free! Enjoy.