Image

Dockerize a Multisite Drupal Install for Drupal 7, 8, 9, and 10

A multisite Drupal installation allows you to host multiple, separate websites while relying on the same set of code. Large organizations often rely on a multisite installation to cut down on the operational upkeep of multiple sites. Hosting a multisite in Docker poses several additional challenges. Fortunately, the process is not dissimilar from configuring a bare-metal server to run a multisite.

In this tutorial, we'll:

  • Outline a multisite's additional requirements for Docker containers.
  • Configure alternate, local domain names to resolve each site.
  • Learn how to configure a multisite to use alternate domain names.