-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebapps.py
More file actions
57 lines (46 loc) · 1.25 KB
/
webapps.py
File metadata and controls
57 lines (46 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
from graphviz import Digraph
dot = Digraph("mindmap", filename="docs/webapps")
# layout geral
dot.attr(
rankdir="TB",
splines="ortho"
)
# estilo dos nós
dot.attr(
"node",
shape="box",
style="rounded,filled",
fillcolor="lightyellow",
fontname="Helvetica",
)
# estilo das arestas
dot.attr(
"edge",
minlen="2",
fontsize="22",
fontcolor="#8B0000",
color="black",
penwidth="1",
fontname="DejaVu Sans Mono"
)
# ===== Nó principal =====
dot.node("webapps", "webapps\n(Thiago)", shape="ellipse", fillcolor="lightblue")
# ===== Filhos diretos =====
dot.attr("node", fillcolor="lightpink")
dot.node("gwmariadb", "gwmariadb\n(Thiago)")
dot.node("minio", "MinIO S3\n(Ricardo)")
dot.node("swarm", "Docker Swarm\n(Ricardo)")
dot.node("nginx", "Nginx Proxy Manager\n(Augusto)")
dot.edge("webapps", "gwmariadb", minlen="3")
dot.edge("webapps", "minio", minlen="3")
dot.edge("webapps", "swarm", minlen="3")
dot.edge("webapps", "nginx", minlen="3")
# ===== Filho de gwmariadb =====
dot.attr("node", fillcolor="lightgreen")
dot.node("galera", "Galera Cluster MariaDB\n(Mônica)")
dot.edge("gwmariadb", "galera")
# ===== Renderização =====
dot.format = "pdf"
dot.render(cleanup=True)
dot.format = "jpg"
dot.render(cleanup=True)