From 3d0a608896deb310e110e40df5acefce1b5de386 Mon Sep 17 00:00:00 2001 From: Chuan Ou Yang Date: Wed, 25 May 2022 16:18:53 +0800 Subject: [PATCH] fix: change port edge style & create extend vertex --- compose_viz/graph.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compose_viz/graph.py b/compose_viz/graph.py index 992716f..c686e3c 100644 --- a/compose_viz/graph.py +++ b/compose_viz/graph.py @@ -26,6 +26,7 @@ def apply_edge_style(type) -> dict: style = { "ports": { "style": "solid", + "dir": "both", }, "links": { "style": "solid", @@ -70,6 +71,7 @@ class Graph: if service.image is not None: self.add_vertex(service.name, "service", lable=f"{service.name}\n({service.image})") if service.extends is not None: + self.add_vertex(service.name, "service", lable=f"{service.name}\n") self.add_edge(service.extends.service_name, service.name, "extends") for network in service.networks: self.add_vertex(network, "network", lable=f"net:{network}")