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