Docker Compose Visualizer
Paste a docker-compose.yml and get a diagram of how the services connect: depends_on, volumes and networks.
Hover a node to highlight its upstream and downstream services, and click it to see the image, ports, volumes and environment variable names. Drag nodes to rearrange them; positions are saved automatically.
It also lists things worth a look: circular dependencies, depends_on on missing services, host-port conflicts, plain-text passwords, untagged images and docker.sock mounts. The YAML is processed in your browser and never sent to a server.
.env (variable values, optional)
Expands variables ($VAR and the default-value forms) in image, ports and volumes. The .env content is not stored, neither in this browser nor on a server.
The YAML, display settings and node positions are saved automatically in this browser (nothing is sent to a server).
Service diagram
Drag a node to rearrange it (arrow keys work too). Hover or click a node to highlight its upstream and downstream services. Arrows point from the service that depends to the one it depends on.
Things worth a look
A mechanical check of the configuration. Some findings may be intentional in your setup.
GuideHow to use & features
- Paste the contents of your docker-compose.yml (or compose.yaml) into the input box. A sample is loaded at first.
- The `depends_on` links between services are drawn as arrows, pointing from the service that depends to the one it depends on.
- Hover or focus a node to highlight its upstream and downstream services. Click it to see the image, ports, volumes, networks and environment variable names.
- Drag nodes (or use the arrow keys) to rearrange them. Positions, input and display settings are saved automatically in this browser.
- "Things worth a look" lists circular dependencies, depends_on on missing services, host-port conflicts, plain-text passwords, untagged images, docker.sock mounts and more.
FAQFAQ
What does the diagram show?
It shows the dependencies between services (`depends_on` and legacy `links`), which named volumes they use and which networks they belong to. Arrows point from the service that depends to the one it depends on. When the start condition is something other than `service_started` (such as `service_healthy`), it is written on the arrow.What does it check?
Circular `depends_on`, dependencies on services that do not exist, the same host port published twice, services with neither `image` nor `build`, untagged or `latest` images, `privileged: true`, `network_mode: host`, `docker.sock` mounts, passwords or keys written directly in environment variables, and volumes or networks that are not declared. It is a mechanical check, so a finding may be what you intended.Does it replace `docker compose config`?
No. It only reads the YAML to draw a diagram and run checks. It expands variables (`$VAR` and the default-value form) in `image`, `ports` and `volumes` using the values you paste into the .env box, but it does not handle `extends`, `include` or merging several files. Use `docker compose config` for the final validation.Are my YAML and passwords sent to a server?
No. Everything is processed in your browser and nothing is sent to a server. Your work is saved only in this browser's localStorage, and "Delete saved data" removes it.How is a service without `depends_on` drawn?
As a standalone node with no arrows. A service with no dependencies has no start-order constraint.
Use casesCommon use cases
See the dependency chain and start order at a glance
Even when `depends_on` spans many services, the diagram shows which service depends on which and what starts first. Hover a node to highlight only its upstream and downstream services.Find why `up` fails
Circular dependencies, dependencies on missing services and host-port conflicts are found before you run anything.Put a container diagram in a README or design doc
Save the SVG and paste it into a README or design document. Ports, volumes and networks can be switched on and off.Read a docker-compose.yml you inherited
Paste tens or hundreds of lines of YAML and see the overall layout together with risky settings such as `privileged`, `docker.sock` and plain-text passwords.
NotesNotes & limitations
It does not run or validate anything
It only reads the YAML to draw a diagram and run checks. It does not start containers or connect to Docker. Use `docker compose config` and `docker compose up` for the final validation.Variables, `extends` and `include` are not handled
`$VAR` is expanded only in `image`, `ports` and `volumes`, using the .env box (not in `environment` and the like), and `extends`, `include` and merging several files (`-f`) are not read. If you need them, paste the YAML expanded by `docker compose config`.The checks are mechanical
Untagged images or a `docker.sock` mount can be intentional in a development setup. A finding means "please check this", not that something is wrong.
Articles for this tool
Turn docker-compose.yml into a diagram and check dependencies, ports and settings
Paste a docker-compose.yml to see depends_on, volumes and networks as a diagram, and check for circular dependencies, port conflicts and plain-text passwords. The YAML is processed only in your browser.
Draw Services and Pods from Kubernetes manifests
Paste Kubernetes manifests to draw how Ingress, Services, Pods, ConfigMaps and Secrets connect, and check why a selector matches nothing or a reference is missing.
Paste an OpenAPI spec and draw how endpoints and schemas connect
Paste an OpenAPI / Swagger spec to draw endpoints, schemas and $ref links, and check missing references, unused schemas and duplicate operationId.
Paste Terraform and draw how resources reference each other
Paste Terraform (.tf) to draw references among resources, data sources and modules, and check ingress open to the world, plain-text passwords and unused variables.
Turn package-lock.json into a graph and find out why a package is installed
Paste a package-lock.json to see dependencies as a graph and trace why a package is installed as a path from the root. Also checks duplicated versions, install scripts and deprecated packages. The file is read only in your browser.
