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")
|
||||
if service.cgroup_parent is not None:
|
||||
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:
|
||||
self.add_vertex(network, "network", lable=f"net:{network}")
|
||||
|
@ -131,7 +131,7 @@ class Graph:
|
|||
self.add_edge(service.name, depends_on, "depends_on")
|
||||
for porfile in service.profiles:
|
||||
self.add_vertex(porfile, "porfile")
|
||||
self.add_edge(porfile, service.name, "links")
|
||||
self.add_edge(service.name, porfile, "links")
|
||||
for device in service.devices:
|
||||
self.add_vertex(device.host_path, "device")
|
||||
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
|
||||
|
||||
monitoring:
|
||||
env_file:
|
||||
- a.env
|
||||
- b.env
|
||||
container_name: monitoring-server
|
||||
image: awesome/monitoring
|
||||
networks:
|
||||
- admin
|
||||
|
||||
expose:
|
||||
- 1234
|
||||
profiles:
|
||||
- tools
|
||||
- foo
|
||||
cgroup_parent: awesome-parent
|
||||
|
||||
backend:
|
||||
networks:
|
||||
|
@ -36,8 +45,12 @@ services:
|
|||
- "8000:5010"
|
||||
links:
|
||||
- "db:database"
|
||||
cgroup_parent: awesome-parent
|
||||
db:
|
||||
image: postgres
|
||||
devices:
|
||||
- "/dev/ttyUSB2:/dev/ttyUSB3"
|
||||
- "/dev/sda:/dev/xvda:rwm"
|
||||
|
||||
networks:
|
||||
front-tier:
|
||||
|
|
Loading…
Reference in a new issue