/drupal-docker-sample

Primary LanguagePHPGNU General Public License v2.0GPL-2.0

Simple Drupal Docker Development environment

Requirements

How to use

Create your Compose file

  1. Copy example.docker-compose.yml to docker-compose.yml.
  2. Adjust the environment settings (e.g. MYSQL_DATABASE) as necessary.

Build and launch your application

Run docker-compose up

Install Drupal

  1. Get the name of the Drupal container:
    $ docker ps
  2. SSH to the container:
    $ docker exec -it <container-name> /bin/bash
  3. Once inside the container, you should see yourself inside the /var/www/html directory.
  4. Install dependencies using composer:
    $ composer install
  5. Install Drupal using drush:
    $ ./vendor/bin/drush si standard --site-name="My Drupal 8 site"

Accessing the site

You can access the site by going to http://localhost:8080

##About Composer template for Drupal projects