Freedom251 › Container Development Environments
Docker4Drupal

What Docker4Drupal is
Docker4Drupal is a free, open-source project for building a local Drupal environment with Docker images and a preconfigured Compose setup. It supports Linux, macOS, and Windows, with images for Drupal CMS 2 and vanilla Drupal 11 and 10. You can start with bundled vanilla Drupal or mount an existing Drupal codebase. The stack lists Nginx and Apache, PHP, MariaDB and PostgreSQL, Valkey, Redis and Memcached, Varnish, Node.js, Solr, and OpenSearch. Optional tools include Mailpit, Gotenberg, Webgrind, Xhprof viewer, Adminer, phpMyAdmin, Selenium Chrome, and Traefik.
Traefik routes projects, including configurations where multiple projects share a port or use different ports. Mailpit catches outbound email by default; OpenSMTPD can be enabled for delivery. The documentation covers enabling Xdebug for web and CLI debugging and configuring an IDE such as PHPStorm. Docker is required, and Linux users also need Docker Compose. Docker4Drupal is designed for local development; users looking to deploy on their own server are directed to Wodby’s Drupal stack. The project is available for free under the MIT license.
Who it suits
Docker4Drupal suits Drupal developers who want a local environment on Linux, macOS, or Windows, whether they use the bundled Drupal setup or an existing codebase. Its listed services and debugging documentation also suit developers who need database, search, mail, routing, or Xdebug components in that environment.
What it does well
- Supports Linux, macOS, and Windows.
- Use bundled vanilla Drupal or mount an existing codebase.
- Lists Drupal CMS 2 and vanilla Drupal 11 and 10 images.
- Includes a broad stack of web, database, cache, and search services.
- Mailpit catches outbound email by default.
- Documentation covers Xdebug for web and CLI debugging.
What to know first
- Docker is required to run the local environment.
- Linux users also need Docker Compose.
- The project is intended for local development.
Plans
| Plan | Billed and limits | Price |
|---|---|---|
| Docker4Drupal | Open-source project; MIT license · Local development environment · requires Docker; Linux also requires Docker Compose | Free |
As github.com lists them, read 7 Oct 2026. The maker's own page has the final word.
Getting started
- Open the Docker4Drupal project website.
- Install Docker; on Linux, install Docker Compose as well.
- Choose bundled vanilla Drupal or mount an existing Drupal codebase.
- Configure the listed services and optional tools for the local stack.
- Enable Xdebug and configure an IDE such as PHPStorm if needed.
Verdict
Choose Docker4Drupal if you want a free local Drupal environment with a configurable Compose stack and support for an existing codebase. It is intended for local development; users seeking deployment on their own server are directed to Wodby’s Drupal stack.
Questions
How much does Docker4Drupal cost?
The listed plan is free. The project is open source under the MIT license.
Which operating systems does it support?
The project describes local environment support for Linux, Mac OS X, and Windows.
Which Drupal versions are listed?
The repository lists Drupal CMS 2 and vanilla Drupal 11 and 10 images.
Does Docker4Drupal include database persistence?
Docker creates a persistent database volume by default. The documentation recommends a bind mount when data should remain attached across restarts.
Can it be used to deploy Drupal on a server?
The project describes Docker4Drupal as a local environment and directs users seeking deployment on their own server to Wodby’s Drupal stack.
What is required to run it?
Docker is required. Linux users are also instructed to install Docker Compose.
Facts from Docker4Drupal's own pages
- 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, 7 Oct 2026
- Debugging
- The docs describe enabling Xdebug for web and CLI debugging and configuring an IDE such as PHPStorm. · wodby.com, 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, 7 Oct 2026
- Drupal versions
- The repository lists Drupal CMS 2 and vanilla Drupal 11 and 10 images. · github.com, 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, 7 Oct 2026
- Mailpit is enabled by default to catch outbound email, and OpenSMTPD can be enabled for email delivery. · wodby.com, 7 Oct 2026
- Operating systems
- The project describes local environment support for Linux, Mac OS X, and Windows. · wodby.com, 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, 7 Oct 2026
- Purpose
- Docker4Drupal provides Docker images and a preconfigured Compose file for running a local Drupal environment. · github.com, 7 Oct 2026
- Requirements
- Docker is required, and Linux users are instructed to install Docker Compose as well. · wodby.com, 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, 7 Oct 2026
- Security configuration
- The documentation says Solr Cloud initialization enables authentication for Solr Cloud mode. · wodby.com, 7 Oct 2026
- Services
- The listed stack includes Nginx, Apache, PHP, MariaDB, PostgreSQL, Valkey, Redis, Memcached, Varnish, Node.js, Solr, and OpenSearch. · github.com, 7 Oct 2026
- Support
- The repository directs users to ask questions on Discord and Slack. · github.com, 7 Oct 2026
Where Docker4Drupal stands on Freedom251
- Container Development Environments#12 of 40