Image

Run Drupal in Docker for Drupal 8, 9

Creating a container set to support Drupal development requires some specialized knowledge. Now that we understand containers, images, how to use Docker Compose (docker-compose), and how to select images on Docker Hub, we're ready to build a container set to support Drupal development.

In this tutorial, we'll:

  • Select images of software that we'll need to run Drupal
  • Create a new Compose file
  • Configure bind volumes and environment variables to support the site
  • Test the configuration

See Dockerize an Existing Project if you already have Drupal installed.