A Docker starter for Drupal, with Composer, and Drush.
-
Start the containers:
make up -
Stop the containers:
make down -
Rebuild the containers:
make build
Review 'Makefile' to see the commands without using Make.
-
Open terminal on the drupal container:
make bash -
Install Drupal using Drush (optional):
drush site:install --db-url=mysql://drupal:drupal@drupal-docker-database:3306/drupal --site-name="My Drupal Site" --account-name=admin --account-pass=admin --account-mail=admin@example.com -
Visit: /user/login
-
admin:admin
Put custom themes/modules into the ./drupal-themes/./drupal-modules folders, which map to the respective Drupal custom folders.
-
(optional) Start phpMyAdmin:
make phpmyadmin -
Visit: localhost:3360
- Docker Desktop
- Make (Optional)