Docker Compose Visualizer

Paste compose.yaml to get a layered diagram of services and dependencies, a services table and warnings for exposed databases, secrets and broken references.

Berjalan dalam pelayar anda. Fail anda tidak pernah meninggalkan peranti. Lihat cara menyemaknya

…

Cara melakukannya

  1. 1
    Paste the file

    Paste or open compose.yaml or docker-compose.yml.

  2. 2
    Read the summary

    Check service, port and finding counts.

  3. 3
    Explore the diagram

    Follow arrows and network chips; zoom as needed.

  4. 4
    Review warnings

    Open Warnings and apply the suggested fixes.

  5. 5
    Check the table

    Compare images, ports, volumes and dependencies side by side.

  6. 6
    Export

    Download the diagram as SVG or PNG and the table as CSV.

Tentang alat ini

A compose file that started with two services tends to grow into a dozen, with several networks, named volumes, health-gated startup order and ports published for debugging that nobody removed. Reading the YAML no longer tells you at a glance which service starts first, which ones can reach the database, or which ports are open to the whole internet on the host. This visualizer parses compose.yaml in the browser and draws it: services are arranged in columns by their depends_on order, arrows show whether a service waits for a dependency to be healthy or only started, each card lists the image, published ports and networks, and named volumes appear on the side with their mounts. Alongside the diagram, a checker reports problems that matter in production: databases published on all interfaces, :latest or untagged images, privileged containers, Docker socket mounts, secrets written in plain text, health-gated dependencies on services without a healthcheck, undeclared networks and volumes, host port clashes and dependency cycles.

Reading the diagram

Services with no dependencies sit in the right-hand column and start first; each column to the left depends on the columns to its right. Solid green arrows mean condition service_healthy, dashed grey arrows mean the default service_started. Network chips are coloured per network so you can see which services share one. A red border marks a privileged container or a database port open on every interface, and a heart marks services with a healthcheck. Zoom in or out and export the diagram as SVG for docs or PNG for chat.

Checks

Database ports such as 5432, 3306, 6379 and 27017 published without a host IP are warnings, with the fix to bind 127.0.0.1 or drop the mapping. Other published ports get a notice because Docker's own firewall rules bypass ufw on Linux. Environment variables named like passwords, secrets, tokens or keys with literal values are warnings. A dependency on a service that is not defined, or a healthy condition on a service without a healthcheck, is an error, as are undeclared named volumes and networks, two services publishing the same host port and depends_on cycles. The obsolete version key and missing restart policies are notices.

Table and export

The services table lists image, ports, networks, volumes, dependencies and health for every service, and can be downloaded as CSV. Findings download as text.

Limits

Variable substitution, extends, include, profiles and override files are not merged, so run docker compose config first and paste its output when your project uses them. The tool does not talk to Docker, pull images or check that services really start.

Contoh berselesaian

A five-service stack (proxy, web, worker, db and cache) produced a three-column diagram: db and cache on the right, web and worker in the middle, proxy on the left. The checker raised 3 warnings: PostgreSQL port 5432 published on 0.0.0.0, the redis image without a tag, and SESSION_SECRET written in plain text. Notices pointed out that worker had no restart policy and only waited for db to start, not to be ready. Binding the database to 127.0.0.1, pinning redis:7.4 and moving the secret into an env_file cleared every warning.

Ringkasnya

Soalan lazim

Does the order of columns equal start order?

Yes for depends_on. Compose starts dependencies first, so the right-hand column starts first. Services with no dependency between them may start in parallel.

Why warn about published ports?

A ports entry without a host IP listens on every interface. On Linux, Docker inserts its own firewall rules, so ufw rules may not block it. Databases rarely need to be reachable from outside.

What is the difference between service_started and service_healthy?

service_started only waits for the container to be created and running. service_healthy waits until its healthcheck passes, which is what an app needs before connecting to a database.

Is the version key needed?

No. The current Compose Specification ignores it and recent Docker versions print a warning, so it can be removed.

Can I export the diagram?

Yes, as SVG or as a PNG at twice the screen resolution.

Does my compose file leave the browser?

No. It is parsed locally and kept as a draft in this browser only.

Percuma sepenuhnyaTiada bayaran, tiada pendaftaran
Fail kekal peribadiSemuanya berjalan dalam pelayar anda
Mudah dalam bahasa andaTersedia dalam banyak bahasa