Docker4Drupal - Mount with drupal-composer¶
- Replace
your-drupal-folderwith the site/folder name you want and run:composer create-project drupal-composer/drupal-project:8.x-dev your-drupal-folder --no-interaction
- Download/unpack
docker4drupalsource code from the latest release to a separate folder - Copy
docker4drupalto site folder withcp -a docker4drupal/. your-drupal-folder/ - Enter
your-drupal-folderand deletedocker-compose.override.ymlas it's used to deploy vanilla Drupal - Run
docker-compose up -dto start containers. - Run composer install with
docker-compose exec php composer install - That's it! Proceed with
Drupalinstallation at http://drupal.docker.localhost:8000 - If you have trouble to access it, try to configure domains
- You can see status of your containers and their logs via portainer: http://portainer.drupal.docker.localhost:8000
Default database user, password and database name are all drupal, database host is mariadb.