# wodby/docker4drupal architecture

> Architecture diagram of the GitHub repository wodby/docker4drupal, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/wodby/docker4drupal
- Repository: https://github.com/wodby/docker4drupal

## Overview

Docker4Drupal is a Docker Compose development stack for Drupal. A developer sends web traffic through Traefik to Nginx, which serves Drupal through the PHP runtime; Drupal persists content, optionally uses caches and search services, and can send mail or generate documents. Cron provides scheduled application work, while database administration and centralized logging support local operations. The graph is based on README capabilities and the repository tree; no source excerpts were available, so optional integrations and service links are conservative.

Main entry points: [`compose.yml`](https://github.com/wodby/docker4drupal/blob/master/compose.yml) (Drupal CMS)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingress["Ingress Layer"]
  node_traefik["Traefik Gateway<br/>[compose.yml]"]
  node_nginx["Nginx Server<br/>[compose.yml]"]
  node_apache["Apache Server<br/>[compose.yml]"]
  node_varnish["Varnish Cache<br/>[compose.yml]"]
end

subgraph group_application["Drupal Runtime"]
  node_drupal_cms["Drupal CMS<br/>[compose.yml]"]
  node_vanilla_drupal["Vanilla Drupal<br/>[compose.yml]"]
  node_php["PHP Runtime<br/>[compose.yml]"]
  node_crond["Cron Worker<br/>[compose.yml]"]
  node_node["Node.js Tools<br/>[compose.yml]"]
end

subgraph group_data["Data Services"]
  node_mariadb[("MariaDB Store<br/>[compose.yml]")]
  node_postgresql[("PostgreSQL Store<br/>[compose.yml]")]
  node_valkey[("Valkey Cache<br/>[compose.yml]")]
  node_redis[("Redis Cache<br/>[compose.yml]")]
  node_memcached[("Memcached Cache<br/>[compose.yml]")]
end

subgraph group_integrations["Optional Integrations"]
  node_solr["Solr Search<br/>[compose.yml]"]
  node_zookeeper["ZooKeeper Service<br/>[compose.yml]"]
  node_opensearch["OpenSearch Search<br/>[compose.yml]"]
  node_opensearch_dashboards["Search Dashboards<br/>[compose.yml]"]
  node_opensmtpd["OpenSMTPD Mail<br/>[compose.yml]"]
  node_mailpit["Mailpit Inbox<br/>[compose.yml]"]
  node_gotenberg["Gotenberg Documents<br/>[compose.yml]"]
end

subgraph group_operations["Local Operations"]
  node_adminer["Adminer Console<br/>[compose.yml]"]
  node_rsyslog["Rsyslog Collector<br/>[compose.yml]"]
end

node_developer(("Developer"))

node_developer -->|"sends requests"| node_traefik
node_traefik -->|"routes traffic"| node_nginx
node_traefik -.->|"routes traffic"| node_apache
node_nginx -->|"proxies requests"| node_drupal_cms
node_apache -.->|"serves requests"| node_drupal_cms
node_drupal_cms -->|"executes code"| node_php
node_vanilla_drupal -.->|"executes code"| node_php
node_crond -->|"runs cron"| node_drupal_cms
node_drupal_cms -->|"stores content"| node_mariadb
node_drupal_cms -.->|"stores content"| node_postgresql
node_drupal_cms -.->|"caches data"| node_valkey
node_drupal_cms -.->|"caches data"| node_redis
node_drupal_cms -.->|"caches data"| node_memcached
node_drupal_cms -.->|"indexes content"| node_solr
node_solr -.->|"coordinates cluster"| node_zookeeper
node_drupal_cms -.->|"indexes content"| node_opensearch
node_opensearch_dashboards -.->|"queries indexes"| node_opensearch
node_drupal_cms -.->|"sends mail"| node_opensmtpd
node_drupal_cms -.->|"captures mail"| node_mailpit
node_drupal_cms -.->|"renders documents"| node_gotenberg
node_adminer -.->|"administers database"| node_mariadb
node_adminer -.->|"administers database"| node_postgresql
node_nginx -.->|"ships logs"| node_rsyslog
node_drupal_cms -.->|"ships logs"| node_rsyslog

click node_traefik "https://github.com/wodby/docker4drupal/blob/master/compose.yml"
click node_nginx "https://github.com/wodby/docker4drupal/blob/master/compose.yml"
click node_apache "https://github.com/wodby/docker4drupal/blob/master/compose.yml"
click node_varnish "https://github.com/wodby/docker4drupal/blob/master/compose.yml"
click node_drupal_cms "https://github.com/wodby/docker4drupal/blob/master/compose.yml"
click node_vanilla_drupal "https://github.com/wodby/docker4drupal/blob/master/compose.yml"
click node_php "https://github.com/wodby/docker4drupal/blob/master/compose.yml"
click node_crond "https://github.com/wodby/docker4drupal/blob/master/compose.yml"
click node_node "https://github.com/wodby/docker4drupal/blob/master/compose.yml"
click node_mariadb "https://github.com/wodby/docker4drupal/blob/master/compose.yml"
click node_postgresql "https://github.com/wodby/docker4drupal/blob/master/compose.yml"
click node_valkey "https://github.com/wodby/docker4drupal/blob/master/compose.yml"
click node_redis "https://github.com/wodby/docker4drupal/blob/master/compose.yml"
click node_memcached "https://github.com/wodby/docker4drupal/blob/master/compose.yml"
click node_solr "https://github.com/wodby/docker4drupal/blob/master/compose.yml"
click node_zookeeper "https://github.com/wodby/docker4drupal/blob/master/compose.yml"
click node_opensearch "https://github.com/wodby/docker4drupal/blob/master/compose.yml"
click node_opensearch_dashboards "https://github.com/wodby/docker4drupal/blob/master/compose.yml"
click node_opensmtpd "https://github.com/wodby/docker4drupal/blob/master/compose.yml"
click node_mailpit "https://github.com/wodby/docker4drupal/blob/master/compose.yml"
click node_gotenberg "https://github.com/wodby/docker4drupal/blob/master/compose.yml"
click node_adminer "https://github.com/wodby/docker4drupal/blob/master/compose.yml"
click node_rsyslog "https://github.com/wodby/docker4drupal/blob/master/compose.yml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_traefik,node_nginx,node_apache,node_varnish toneBlue
class node_drupal_cms,node_vanilla_drupal,node_php,node_crond,node_node toneAmber
class node_mariadb,node_postgresql,node_valkey,node_redis,node_memcached toneMint
class node_solr,node_zookeeper,node_opensearch,node_opensearch_dashboards,node_opensmtpd,node_mailpit,node_gotenberg toneRose
class node_adminer,node_rsyslog,node_developer toneIndigo
```

## Components

### Ingress Layer

- [Traefik Gateway](https://github.com/wodby/docker4drupal/blob/master/compose.yml): `compose.yml`
- [Nginx Server](https://github.com/wodby/docker4drupal/blob/master/compose.yml): `compose.yml`
- [Apache Server](https://github.com/wodby/docker4drupal/blob/master/compose.yml): `compose.yml`
- [Varnish Cache](https://github.com/wodby/docker4drupal/blob/master/compose.yml): `compose.yml`

### Drupal Runtime

- [Drupal CMS](https://github.com/wodby/docker4drupal/blob/master/compose.yml): `compose.yml`
- [Vanilla Drupal](https://github.com/wodby/docker4drupal/blob/master/compose.yml): `compose.yml`
- [PHP Runtime](https://github.com/wodby/docker4drupal/blob/master/compose.yml): `compose.yml`
- [Cron Worker](https://github.com/wodby/docker4drupal/blob/master/compose.yml): `compose.yml`
- [Node.js Tools](https://github.com/wodby/docker4drupal/blob/master/compose.yml): `compose.yml`

### Data Services

- [MariaDB Store](https://github.com/wodby/docker4drupal/blob/master/compose.yml): `compose.yml`
- [PostgreSQL Store](https://github.com/wodby/docker4drupal/blob/master/compose.yml): `compose.yml`
- [Valkey Cache](https://github.com/wodby/docker4drupal/blob/master/compose.yml): `compose.yml`
- [Redis Cache](https://github.com/wodby/docker4drupal/blob/master/compose.yml): `compose.yml`
- [Memcached Cache](https://github.com/wodby/docker4drupal/blob/master/compose.yml): `compose.yml`

### Optional Integrations

- [Solr Search](https://github.com/wodby/docker4drupal/blob/master/compose.yml): `compose.yml`
- [ZooKeeper Service](https://github.com/wodby/docker4drupal/blob/master/compose.yml): `compose.yml`
- [OpenSearch Search](https://github.com/wodby/docker4drupal/blob/master/compose.yml): `compose.yml`
- [Search Dashboards](https://github.com/wodby/docker4drupal/blob/master/compose.yml): `compose.yml`
- [OpenSMTPD Mail](https://github.com/wodby/docker4drupal/blob/master/compose.yml): `compose.yml`
- [Mailpit Inbox](https://github.com/wodby/docker4drupal/blob/master/compose.yml): `compose.yml`
- [Gotenberg Documents](https://github.com/wodby/docker4drupal/blob/master/compose.yml): `compose.yml`

### Local Operations

- [Adminer Console](https://github.com/wodby/docker4drupal/blob/master/compose.yml): `compose.yml`
- [Rsyslog Collector](https://github.com/wodby/docker4drupal/blob/master/compose.yml): `compose.yml`

### Other components

- **Developer**

## Connections

- Developer → Traefik Gateway: sends requests
- Traefik Gateway → Nginx Server: routes traffic
- Traefik Gateway → Apache Server: routes traffic
- Nginx Server → Drupal CMS: proxies requests
- Apache Server → Drupal CMS: serves requests
- Drupal CMS → PHP Runtime: executes code
- Vanilla Drupal → PHP Runtime: executes code
- Cron Worker → Drupal CMS: runs cron
- Drupal CMS → MariaDB Store: stores content
- Drupal CMS → PostgreSQL Store: stores content
- Drupal CMS → Valkey Cache: caches data
- Drupal CMS → Redis Cache: caches data
- Drupal CMS → Memcached Cache: caches data
- Drupal CMS → Solr Search: indexes content
- Solr Search → ZooKeeper Service: coordinates cluster
- Drupal CMS → OpenSearch Search: indexes content
- Search Dashboards → OpenSearch Search: queries indexes
- Drupal CMS → OpenSMTPD Mail: sends mail
- Drupal CMS → Mailpit Inbox: captures mail
- Drupal CMS → Gotenberg Documents: renders documents
- Adminer Console → MariaDB Store: administers database
- Adminer Console → PostgreSQL Store: administers database
- Nginx Server → Rsyslog Collector: ships logs
- Drupal CMS → Rsyslog Collector: ships logs
