Using in GitHub Codespaces
If your repository already has the devcontainer configured, you can open it in GitHub Codespaces with zero local setup.
Prerequisites
- A GitHub account with access to Codespaces
- A repository with the devcontainer already configured
Steps
Navigate to your repository on GitHub
Click Code → Codespaces → Create codespace on main
Wait for the environment to build
Install dependencies and run setup:
bash
composer install
.devcontainer/magento2-devcontainer/bin/setup-install.sh | bash- Verify the installation:
bash
bin/magento --versionNext Steps
- Docker Compose Configuration - Customize your environment