- MySQL/MariaDB
- PHP 5.6,7.0,7.1,7.2,7.3
- Apache 2.4
- PhpMyAdmin
- Mailhog
- XDebug
- Drush
- Drupal Console
Clone git repo.
git clone https://github.com/managume/docker-xdebug.git
cd docker-xdebugCopy dist.env to .env and edit if it's neccesary.
cp dist.env .env(Optional) For better experience you can execute following commands to deploy custom scripts for interact with docker services
sh .docker/bin/docker-symlinks-upNow, up Docker.
# Using custom scripts
sh dup
# Using docker-compose
docker-compose up -d --build --no-recreate# Using custom scripts
sh ddown
# Using docker-compose
docker-compose downInstall PHP Debug extension and edit PHP Debug launch.json.
{
"version": "0.2.0",
"configurations": [
{
"name": "Docker Xdebug",
"type": "php",
"request": "launch",
"port": 9000,
"pathMappings":{
"/var/www/html":"${workspaceRoot}"
},
}
]
}After exec sh .docker/bin/docker-symlinks-up following commands are available:
sh dupUp and run docker in backgroundsh ddownDown dockersh dresetReset dockersh dexecExecute with www-data usersh drootExecute with root usersh dcomposerComposersh ddrushDrushsh ddrupalDrupal consolesh dnpmNpm