Drupal development environment using Docker Compose.
php-fpm-nginx => php-fpm, nginx, mysql, solr. apache => apache, mysql, solr.
docker --version
docker-compose --version
- Docker Machine NFS (optional)
- Mac Users using this script to use NFS should be able to use default setup.
- If not using NFS or on other OS, see Dockerfile for directory ownership mapping.
- Place Drupal in the
/drupal/
directory so that it lives atdocker-compose-drupal/drupal
. - (optional) Create a
/build/
directory outside of this repo and clone Apache Solr for Drupal there. - Run
docker-compose up
- Visit
http://VBOXNET_IP:8000
in your browser - Use
drupal:drupal@mysql/drupal
for the database settings. e.g.docker exec -i drupaldockercompose_mysql_1 mysql -udrupal -pdrupal drupal < database_dump.sql
- To run a Drush command, execute
docker-compose exec web drush status
Licensed under the permissive MIT license.
With thanks to Rob Loach for his Docker Compose repo, @wadmiraal for his Docker Drupal repo and Karol Sojko, my fellow colleague from X-Team for all their help, directly & indirectly.
Copyright © 2016+ Paul McCrodden