Skip to main content

discover_compose_services

Function discover_compose_services 

Source
pub fn discover_compose_services(compose_file: &Path) -> Vec<String>
Expand description

Discover service names from a docker-compose.yml file by parsing the top-level services: section. This avoids requiring Docker at config load time while still enabling auto-discovery of compose services as valid depends_on targets.

Returns an empty vec if the file cannot be read or has no services section.