chore: change volumes_ro type to dashed
This commit is contained in:
parent
698a9a770b
commit
18da6cc728
1 changed files with 5 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue