Socket
Book a DemoInstallSign in
Socket

dcdg

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dcdg

Generate dependency graph from docker-compose.yaml

0.1.0
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Docker compose dependency graph

Simple generator of dependency graph based on depends_on declarations in a docker-compose.yaml. The yaml is parsed with js-yaml and the dependency graph is rendered with mermaid-cli.

Requirements

The generator uses mermaid-cli and this needs to be installed and available in your PATH, see the project page for installation options but one way is:

npm install -g @mermaid-js/mermaid-cli

Installation

Install globally or in your project, to make it available globally:

npm install -g dcdg

Usage

> dcdg -i docker-compose.yaml -o dependency-graph.png

Example output

Contribute

Feel free to contribute improvements if you like, the script was created to fullfill a specific need, it's unlikely that it works well with all docker-compose.yaml variants.

FAQs

Package last updated on 10 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.