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": {
"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: