chore: change volumes_ro type to dashed

This commit is contained in:
Xyphuz 2022-06-09 03:08:14 +08:00
parent 698a9a770b
commit 18da6cc728

View file

@ -45,10 +45,13 @@ def apply_edge_style(type: str) -> dict:
"links": { "links": {
"style": "solid", "style": "solid",
}, },
"volumes": { "volumes_rw": {
"style": "dashed", "style": "dashed",
"dir": "both", "dir": "both",
}, },
"volumes_ro": {
"style": "dashed",
},
"depends_on": { "depends_on": {
"style": "dotted", "style": "dotted",
}, },
@ -106,7 +109,7 @@ class Graph:
self.add_edge( self.add_edge(
service.name, service.name,
volume.source, 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, lable=volume.target,
) )
for expose in service.expose: for expose in service.expose: