Docker4Drupal - Mount with drupal-composer

  1. 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
    
  2. Download/unpack docker4drupal source code from the latest release to a separate folder
  3. Copy docker4drupal to site folder with cp -a docker4drupal/. your-drupal-folder/
  4. Enter your-drupal-folder and delete docker-compose.override.yml as it's used to deploy vanilla Drupal
  5. Run docker-compose up -d to start containers.
  6. Run composer install with docker-compose exec php composer install
  7. That's it! Proceed with Drupal installation at http://drupal.docker.localhost:8000
  8. If you have trouble to access it, try to configure domains
  9. 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.