diff --git a/cli/compose/loader/merge.go b/cli/compose/loader/merge.go index 0de8d8a1b6..ec52224e2d 100644 --- a/cli/compose/loader/merge.go +++ b/cli/compose/loader/merge.go @@ -111,7 +111,7 @@ func toServicePortConfigsMap(s interface{}) (map[interface{}]interface{}, error) } m := map[interface{}]interface{}{} for _, p := range ports { - m[p.Published] = p + m[p] = p } return m, nil }