(project *types.Project)
| 130 | } |
| 131 | |
| 132 | func prepareNetworks(project *types.Project) { |
| 133 | for k, nw := range project.Networks { |
| 134 | nw.CustomLabels = nw.CustomLabels. |
| 135 | Add(api.NetworkLabel, k). |
| 136 | Add(api.ProjectLabel, project.Name). |
| 137 | Add(api.VersionLabel, api.ComposeVersion) |
| 138 | project.Networks[k] = nw |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | func (s *composeService) ensureNetworks(ctx context.Context, project *types.Project) (map[string]string, error) { |
| 143 | networks := map[string]string{} |