Docker4Drupal
Docker4Drupal provides Docker images and a preconfigured Compose file for running Drupal locally on Linux, macOS, or Windows.
What Docker4Drupal is
Docker4Drupal provides Docker images and a preconfigured Compose file for running Drupal locally on Linux, macOS, or Windows. Its repository lists Drupal CMS 2 and vanilla Drupal 11 and 10 images. The stack includes web servers, databases, caches, and search services such as Nginx, Apache, PHP, MariaDB, PostgreSQL, Valkey, Redis, Memcached, Varnish, Node.js, Solr, and OpenSearch. Optional tools include Mailpit, Gotenberg, Webgrind, Xhprof viewer, Adminer, phpMyAdmin, Selenium Chrome, and Traefik. Developers can start with bundled vanilla Drupal or mount an existing Drupal codebase. Traefik handles routing, including setups with multiple projects on a shared port or separate ports. Mailpit catches outbound email by default, and OpenSMTPD can be enabled for delivery. The documentation covers Xdebug for web and CLI debugging and IDE configuration such as PHPStorm. Docker is required; Linux users also need Docker Compose. The project is free and open source under the MIT license, and is intended for local development rather than deployment on a server.
Good
- Free and open source under the MIT license
- Supports Drupal CMS 2 and vanilla Drupal 11 and 10
- Can mount an existing Drupal codebase
- Mailpit catches outbound email by default
- Documentation covers Xdebug and IDE configuration
Watch out
- Docker is required
- Linux users also need Docker Compose
- Intended for local development, not server deployment
Who it suits
Docker4Drupal suits Drupal developers who want a local environment with configurable services and optional development tools. It supports Linux, macOS, and Windows, provided Docker is installed.
Verdict
Docker4Drupal offers a configurable local Drupal stack, with a choice of bundled Drupal or an existing codebase. It is a fit for development workflows, but requires Docker and is not presented as a server deployment option.
Plans and prices
From Docker4Drupal's own pricing page, checked 7 Oct 2001.
| Plan | Price | What it gives you |
|---|---|---|
| Docker4Drupal | Free | Local development environment · requires Docker; Linux also requires Docker Compose · Open-source project; MIT license |
The facts
Each one read from Docker4Drupal's own pages, with the date it was checked.
What it does
- Database persistence
- The docs say Docker creates a persistent database volume by default and recommend a bind mount when data should remain attached across restarts.checked 7 Oct 2001
- Debugging
- The docs describe enabling Xdebug for web and CLI debugging and configuring an IDE such as PHPStorm.checked 7 Oct 2001
- Developer workflow
- The documentation describes using the stack either with bundled vanilla Drupal or by mounting an existing Drupal codebase.checked 7 Oct 2001
- Drupal versions
- The repository lists Drupal CMS 2 and vanilla Drupal 11 and 10 images.checked 7 Oct 2001
- Intended use
- The repository describes Docker4Drupal as a project for spinning up a local environment and points users seeking deployment on their own server to Wodby’s Drupal stack.checked 7 Oct 2001
- Mailpit is enabled by default to catch outbound email, and OpenSMTPD can be enabled for email delivery.checked 7 Oct 2001
- Operating systems
- The project describes local environment support for Linux, Mac OS X, and Windows.checked 7 Oct 2001
- Optional tools
- The Compose stack also lists tools including Mailpit, Gotenberg, Webgrind, Xhprof viewer, Adminer, phpMyAdmin, Selenium Chrome, and Traefik.checked 7 Oct 2001
- Purpose
- Docker4Drupal provides Docker images and a preconfigured Compose file for running a local Drupal environment.checked 7 Oct 2001
- Requirements
- Docker is required, and Linux users are instructed to install Docker Compose as well.checked 7 Oct 2001
- Routing
- Traefik is used for routing, and the documentation describes running multiple projects through a shared port or different ports.checked 7 Oct 2001
- Security configuration
- The documentation says Solr Cloud initialization enables authentication for Solr Cloud mode.checked 7 Oct 2001
- Services
- The listed stack includes Nginx, Apache, PHP, MariaDB, PostgreSQL, Valkey, Redis, Memcached, Varnish, Node.js, Solr, and OpenSearch.checked 7 Oct 2001
- Support
- The repository directs users to ask questions on Discord and Slack.checked 7 Oct 2001
Alternatives to Docker4Drupal
- 1

Garden
Free planOpen sourceWebAPILinuxmacOS8.3From $50 a month - 2

DevPod
Free planOpen sourceLinuxmacOSSelf-hostedWindows7.4Free plan - 3

Docker Desktop
Free planWebLinuxmacOSWindows7.3From $9 a month - 4

OrbStack
Free planAPImacOS7.2From $8 a month - 5
Kool
Free planWebLinuxmacOSWindows7.1From $5 a month - 6
Rancher Desktop
Free planAPILinuxmacOSWindows6.7Free plan
