| 9 | ) |
| 10 | |
| 11 | func GetServiceSyncPaths( |
| 12 | project *composetypes.Project, |
| 13 | service composetypes.ServiceConfig, |
| 14 | ) []string { |
| 15 | syncPaths := []string{} |
| 16 | for _, volumeMount := range service.Volumes { |
| 17 | isProvisionedVolume := false |
| 18 | for _, volume := range project.Volumes { |
| 19 | if volumeMount.Source == volume.Name { |
| 20 | isProvisionedVolume = true |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | if !isProvisionedVolume { |
| 25 | syncPaths = append(syncPaths, volumeMount.Target) |
| 26 | } |
| 27 | } |
| 28 | return syncPaths |
| 29 | } |
| 30 | |
| 31 | func volumesConfig( |
| 32 | service composetypes.ServiceConfig, |