chore: change profile's and cgroup_parent's arrow direction
This commit is contained in:
parent
18da6cc728
commit
d2afcfb243
3 changed files with 16 additions and 3 deletions
|
@ -99,7 +99,7 @@ class Graph:
|
||||||
self.add_edge(service.extends.service_name, service.name, "extends")
|
self.add_edge(service.extends.service_name, service.name, "extends")
|
||||||
if service.cgroup_parent is not None:
|
if service.cgroup_parent is not None:
|
||||||
self.add_vertex(service.cgroup_parent, "cgroup")
|
self.add_vertex(service.cgroup_parent, "cgroup")
|
||||||
self.add_edge(service.cgroup_parent, service.name, "links")
|
self.add_edge(service.name, service.cgroup_parent, "links")
|
||||||
|
|
||||||
for network in service.networks:
|
for network in service.networks:
|
||||||
self.add_vertex(network, "network", lable=f"net:{network}")
|
self.add_vertex(network, "network", lable=f"net:{network}")
|
||||||
|
@ -131,7 +131,7 @@ class Graph:
|
||||||
self.add_edge(service.name, depends_on, "depends_on")
|
self.add_edge(service.name, depends_on, "depends_on")
|
||||||
for porfile in service.profiles:
|
for porfile in service.profiles:
|
||||||
self.add_vertex(porfile, "porfile")
|
self.add_vertex(porfile, "porfile")
|
||||||
self.add_edge(porfile, service.name, "links")
|
self.add_edge(service.name, porfile, "links")
|
||||||
for device in service.devices:
|
for device in service.devices:
|
||||||
self.add_vertex(device.host_path, "device")
|
self.add_vertex(device.host_path, "device")
|
||||||
self.add_edge(
|
self.add_edge(
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 93 KiB |
|
@ -6,10 +6,19 @@ services:
|
||||||
- back-tier
|
- back-tier
|
||||||
|
|
||||||
monitoring:
|
monitoring:
|
||||||
|
env_file:
|
||||||
|
- a.env
|
||||||
|
- b.env
|
||||||
|
container_name: monitoring-server
|
||||||
image: awesome/monitoring
|
image: awesome/monitoring
|
||||||
networks:
|
networks:
|
||||||
- admin
|
- admin
|
||||||
|
expose:
|
||||||
|
- 1234
|
||||||
|
profiles:
|
||||||
|
- tools
|
||||||
|
- foo
|
||||||
|
cgroup_parent: awesome-parent
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
networks:
|
networks:
|
||||||
|
@ -36,8 +45,12 @@ services:
|
||||||
- "8000:5010"
|
- "8000:5010"
|
||||||
links:
|
links:
|
||||||
- "db:database"
|
- "db:database"
|
||||||
|
cgroup_parent: awesome-parent
|
||||||
db:
|
db:
|
||||||
image: postgres
|
image: postgres
|
||||||
|
devices:
|
||||||
|
- "/dev/ttyUSB2:/dev/ttyUSB3"
|
||||||
|
- "/dev/sda:/dev/xvda:rwm"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
front-tier:
|
front-tier:
|
||||||
|
|
Loading…
Reference in a new issue