# dunglas/symfony-docker architecture

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

- Interactive diagram: https://gitdiagram.com/dunglas/symfony-docker
- Repository: https://github.com/dunglas/symfony-docker

## Overview

Symfony Docker is a Docker-based installer and runtime template for Symfony, using FrankenPHP and Caddy. The documented workflow is to build the image, start the Compose project, and visit the local HTTPS site. The tree shows the runtime configuration and Dev Container files, but the only sampled source is composer.json, which is empty; therefore relationships beyond the README’s documented workflow are omitted. README-listed capabilities are represented where the tree provides a plausible configuration path, without asserting unsampled wiring.

Main entry points: [`compose.yaml`](https://github.com/dunglas/symfony-docker/blob/main/compose.yaml) (Compose project), [`Dockerfile`](https://github.com/dunglas/symfony-docker/blob/main/Dockerfile) (Runtime image), [`.devcontainer/devcontainer.json`](https://github.com/dunglas/symfony-docker/blob/main/.devcontainer/devcontainer.json) (Dev Container), [`docs/agents.md`](https://github.com/dunglas/symfony-docker/blob/main/docs/agents.md) (Coding-agent guide)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Project workflow"]
  node_compose["Compose project<br/>[compose.yaml]"]
  node_devcompose["Development overrides"]
  node_prodcompose["Production overrides<br/>[compose.prod.yaml]"]
end

subgraph group_runtime["Container runtime"]
  node_image["Runtime image"]
  node_entrypoint["Container entrypoint"]
  node_phpconfig["PHP configuration<br/>[conf.d]"]
end

subgraph group_web["Web capabilities"]
  node_webserver["FrankenPHP and Caddy"]
  node_site["Local HTTPS site"]
  node_mercure["Mercure messaging"]
  node_vulcain["Vulcain support"]
  node_hotreload["Hot reloading"]
end

subgraph group_developer["Developer environment"]
  node_devcontainer["Dev Container<br/>[devcontainer.json]"]
  node_agentguide["Coding-agent guide<br/>[agents.md]"]
end

node_operator(("Project operator"))

node_operator -->|"builds and starts"| node_compose
node_operator -->|"opens"| node_site
node_compose -->|"builds"| node_image
node_compose -->|"starts project"| node_site
node_operator -->|"uses"| node_devcontainer
node_operator -->|"follows"| node_agentguide

click node_compose "https://github.com/dunglas/symfony-docker/blob/main/compose.yaml"
click node_image "https://github.com/dunglas/symfony-docker/blob/main/Dockerfile"
click node_entrypoint "https://github.com/dunglas/symfony-docker/blob/main/frankenphp/docker-entrypoint.sh"
click node_phpconfig "https://github.com/dunglas/symfony-docker/tree/main/frankenphp/conf.d"
click node_devcompose "https://github.com/dunglas/symfony-docker/blob/main/compose.override.yaml"
click node_prodcompose "https://github.com/dunglas/symfony-docker/blob/main/compose.prod.yaml"
click node_webserver "https://github.com/dunglas/symfony-docker/blob/main/frankenphp/Caddyfile"
click node_mercure "https://github.com/dunglas/symfony-docker/blob/main/frankenphp/Caddyfile"
click node_vulcain "https://github.com/dunglas/symfony-docker/blob/main/frankenphp/Caddyfile"
click node_hotreload "https://github.com/dunglas/symfony-docker/blob/main/frankenphp/Caddyfile"
click node_devcontainer "https://github.com/dunglas/symfony-docker/blob/main/.devcontainer/devcontainer.json"
click node_agentguide "https://github.com/dunglas/symfony-docker/blob/main/docs/agents.md"

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_compose,node_devcompose,node_prodcompose toneBlue
class node_image,node_entrypoint,node_phpconfig toneAmber
class node_webserver,node_site,node_mercure,node_vulcain,node_hotreload toneMint
class node_devcontainer,node_agentguide toneRose
class node_operator toneIndigo
```

## Components

### Project workflow

- [Compose project](https://github.com/dunglas/symfony-docker/blob/main/compose.yaml): `compose.yaml`
- [Development overrides](https://github.com/dunglas/symfony-docker/blob/main/compose.override.yaml): `compose.override.yaml`
- [Production overrides](https://github.com/dunglas/symfony-docker/blob/main/compose.prod.yaml): `compose.prod.yaml`

### Container runtime

- [Runtime image](https://github.com/dunglas/symfony-docker/blob/main/Dockerfile): `Dockerfile`
- [Container entrypoint](https://github.com/dunglas/symfony-docker/blob/main/frankenphp/docker-entrypoint.sh): `frankenphp/docker-entrypoint.sh`
- [PHP configuration](https://github.com/dunglas/symfony-docker/tree/main/frankenphp/conf.d): `frankenphp/conf.d`

### Web capabilities

- [FrankenPHP and Caddy](https://github.com/dunglas/symfony-docker/blob/main/frankenphp/Caddyfile): `frankenphp/Caddyfile`
- **Local HTTPS site**
- [Mercure messaging](https://github.com/dunglas/symfony-docker/blob/main/frankenphp/Caddyfile): `frankenphp/Caddyfile`
- [Vulcain support](https://github.com/dunglas/symfony-docker/blob/main/frankenphp/Caddyfile): `frankenphp/Caddyfile`
- [Hot reloading](https://github.com/dunglas/symfony-docker/blob/main/frankenphp/Caddyfile): `frankenphp/Caddyfile`

### Developer environment

- [Dev Container](https://github.com/dunglas/symfony-docker/blob/main/.devcontainer/devcontainer.json): `.devcontainer/devcontainer.json`
- [Coding-agent guide](https://github.com/dunglas/symfony-docker/blob/main/docs/agents.md): `docs/agents.md`

### Other components

- **Project operator**

## Connections

- Project operator → Compose project: builds and starts (evidence: `README.md`)
- Project operator → Local HTTPS site: opens (evidence: `README.md`)
- Compose project → Runtime image: builds (evidence: `README.md`)
- Compose project → Local HTTPS site: starts project (evidence: `README.md`)
- Project operator → Dev Container: uses (evidence: `README.md`)
- Project operator → Coding-agent guide: follows (evidence: `README.md`)
