- 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-xdebug
Copy 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-up
Now, 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 down
Install 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 dup
Up and run docker in backgroundsh ddown
Down dockersh dreset
Reset dockersh dexec
Execute with www-data usersh droot
Execute with root usersh dcomposer
Composersh ddrush
Drushsh ddrupal
Drupal consolesh dnpm
Npm