This devcontainer provides a complete development environment for Magento 2 that meets Adobe's official system requirements.
Each branch provides a docker-compose configuration matching the system requirements for that Magento version:
| Branch | Magento Version | Configuration |
|---|---|---|
main |
2.4.9 | docker-compose.yml |
dev-v2.4.8 |
2.4.8 | docker-compose.yml |
dev-v2.4.7 |
2.4.7 | docker-compose.yml |
dev-v2.4.6 |
2.4.6 | docker-compose.yml |
To use a specific version, update your git submodule to the appropriate branch:
cd .devcontainer/magento2-devcontainer
git checkout dev-v2.4.7 # or desired branch-
Add this repository as a git submodule to your Magento project:
git submodule add https://github.com/graycoreio/magento2-devcontainer.git .devcontainer/magento2-devcontainer
-
Copy the sample devcontainer.json to your project:
cp .devcontainer/magento2-devcontainer/devcontainer.json.sample .devcontainer/devcontainer.json
-
Open the project in VS Code and click "Reopen in Container" when prompted.