- Home
- Container Development Environments
- Docker4Drupal
Docker4Drupal
What it is
Docker4Drupal is a free project that provides Docker images and a preconfigured Compose setup for running a local Drupal environment. It lists images for Drupal CMS 2 and vanilla Drupal 11 and 10, with support described for Linux, macOS, and Windows. The stack includes Nginx, Apache, PHP, MariaDB, PostgreSQL, Valkey, Redis, Memcached, Varnish, Node.js, Solr, and OpenSearch, along with optional tools such as Mailpit, Gotenberg, Adminer, phpMyAdmin, Selenium Chrome, and Traefik.
Developers can use the bundled vanilla Drupal setup or mount an existing codebase. Traefik handles routing, including configurations for multiple projects using a shared port or separate ports. Mailpit catches outbound email by default; OpenSMTPD can be enabled for delivery. The documentation covers Xdebug for web and CLI debugging and IDE configuration such as PHPStorm. Docker is required, and Linux users also need Docker Compose. The project is intended for local development; users seeking deployment on their own server are directed to Wodby’s Drupal stack. It is free and open source under the MIT license.
For and against
For
- Supports Linux, macOS, and Windows
- Works with bundled Drupal or an existing codebase
- Includes a broad set of database and search options
- Documentation covers Xdebug and IDE configuration
Against
- Requires Docker
- Linux users also need Docker Compose
- Intended for local development, not server deployment
The verdict
Docker4Drupal offers a configurable local Drupal stack with optional services and debugging support. It is a fit for development workflows, but Docker is a prerequisite.
Who it suits
Docker4Drupal suits developers who need a local Drupal environment on Linux, macOS, or Windows. It accommodates both a bundled Drupal setup and an existing codebase.
Plans and prices
Docker4Drupal
Local development environment · requires Docker; Linux also requires Docker Compose
Read 7 Oct 2026 · github.com
On the record
- 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.wodby.com · read 7 Oct 2026
- Debugging
- The docs describe enabling Xdebug for web and CLI debugging and configuring an IDE such as PHPStorm.wodby.com · read 7 Oct 2026
- Developer workflow
- The documentation describes using the stack either with bundled vanilla Drupal or by mounting an existing Drupal codebase.wodby.com · read 7 Oct 2026
- Drupal versions
- The repository lists Drupal CMS 2 and vanilla Drupal 11 and 10 images.github.com · read 7 Oct 2026
- 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.github.com · read 7 Oct 2026
- Mailpit is enabled by default to catch outbound email, and OpenSMTPD can be enabled for email delivery.wodby.com · read 7 Oct 2026
- Operating systems
- The project describes local environment support for Linux, Mac OS X, and Windows.wodby.com · read 7 Oct 2026
- Optional tools
- The Compose stack also lists tools including Mailpit, Gotenberg, Webgrind, Xhprof viewer, Adminer, phpMyAdmin, Selenium Chrome, and Traefik.github.com · read 7 Oct 2026
- Purpose
- Docker4Drupal provides Docker images and a preconfigured Compose file for running a local Drupal environment.github.com · read 7 Oct 2026
- Requirements
- Docker is required, and Linux users are instructed to install Docker Compose as well.wodby.com · read 7 Oct 2026
- Routing
- Traefik is used for routing, and the documentation describes running multiple projects through a shared port or different ports.wodby.com · read 7 Oct 2026
- Security configuration
- The documentation says Solr Cloud initialization enables authentication for Solr Cloud mode.wodby.com · read 7 Oct 2026
- Services
- The listed stack includes Nginx, Apache, PHP, MariaDB, PostgreSQL, Valkey, Redis, Memcached, Varnish, Node.js, Solr, and OpenSearch.github.com · read 7 Oct 2026
- Support
- The repository directs users to ask questions on Discord and Slack.github.com · read 7 Oct 2026