From 18da6cc72895f9235489daa792d0b37499f9e8a3 Mon Sep 17 00:00:00 2001 From: Xyphuz Date: Thu, 9 Jun 2022 03:08:14 +0800 Subject: [PATCH] chore: change volumes_ro type to dashed --- compose_viz/graph.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/compose_viz/graph.py b/compose_viz/graph.py index ea27581..a803c6a 100644 --- a/compose_viz/graph.py +++ b/compose_viz/graph.py @@ -45,10 +45,13 @@ def apply_edge_style(type: str) -> dict: "links": { "style": "solid", }, - "volumes": { + "volumes_rw": { "style": "dashed", "dir": "both", }, + "volumes_ro": { + "style": "dashed", + }, "depends_on": { "style": "dotted", }, @@ -106,7 +109,7 @@ class Graph: self.add_edge( service.name, volume.source, - "volumes" if "rw" in volume.access_mode else "links", + "volumes_rw" if "rw" in volume.access_mode else "volumes_ro", lable=volume.target, ) for expose in service.expose: