in local-container-endpoints/handlers/metadata.go [217:231]
func filterByComposeProject(dockerContainers []types.Container, projectName string) []types.Container {
var filteredContainers []types.Container
for _, container := range dockerContainers {
if container.Labels[composeProjectNameLabel] == projectName {
filteredContainers = append(filteredContainers, container)
}
}
if len(filteredContainers) > 0 {
return filteredContainers
}
return dockerContainers
}