Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>Docker Compose to MermaidNew to Visual Studio Code? Get it now.
Docker Compose to Mermaid

Docker Compose to Mermaid

Tamir Tapiro

|
2 installs
| (0) | Free
Live Mermaid architecture diagram preview for docker-compose files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Docker Compose to Mermaid

Automatically generates a live Mermaid architecture diagram from your docker-compose.yml file and displays it in a VS Code webview panel. Every time you save a Compose file the diagram refreshes instantly, so your architecture documentation is always in sync with your actual service topology.

Features

  • Live preview — webview panel renders the Mermaid diagram using Mermaid.js
  • Auto-refresh — file watcher regenerates the diagram on every save
  • Copy to clipboard — one-click button copies the raw Mermaid syntax for use in Markdown docs, PRs, or wikis
  • Command palette integration — invoke from anywhere with Docker Compose: Generate Architecture Diagram
  • Zero configuration — works out of the box with any docker-compose*.yml file in the workspace

Usage

  1. Open a workspace that contains a docker-compose.yml (or any docker-compose*.yml) file.
  2. Open the Command Palette (Cmd+Shift+P / Ctrl+Shift+P).
  3. Run Docker Compose: Generate Architecture Diagram.
  4. The diagram panel opens and renders your service topology.
  5. Edit and save your Compose file — the diagram updates automatically.

Requirements

  • VS Code 1.85 or later
  • A workspace containing at least one docker-compose*.yml file

Notes

The diagram is generated by the @dc2mermaid/core library. Full inference support (environment variable URLs, image-based service classification, network grouping) requires the core pipeline to be fully implemented. Until then, the panel displays a friendly placeholder message.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft