Docker4Drupal - Mount with drupal-composer¶
- Replace
your-drupal-folder
with 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
docker4drupal
source code from the latest release to a separate folder - Copy
docker4drupal
to site folder withcp -a docker4drupal/. your-drupal-folder/
- Enter
your-drupal-folder
and deletedocker-compose.override.yml
as it's used to deploy vanilla Drupal - Run
docker-compose up -d
to start containers. - Run composer install with
docker-compose exec php composer install
- That's it! Proceed with
Drupal
installation 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
.