diff --git a/compose_viz/parser.py b/compose_viz/parser.py index b9959fa..04a40be 100644 --- a/compose_viz/parser.py +++ b/compose_viz/parser.py @@ -79,7 +79,9 @@ class Parser: volume_target = spilt_data[1] service_volumes.append(Volume(source=volume_source, target=volume_target)) - + service_links: List[str] = [] + if service.get("links"): + service_links = service["links"] services.append( Service( @@ -90,6 +92,7 @@ class Parser: ports=service_ports, depends_on=service_depends_on, volumes=service_volumes, + links=service_links ) ) # Service print debug