From 036a896e1584f3090dfd4d507fd53bee8560dd29 Mon Sep 17 00:00:00 2001 From: adeniyistephen Date: Wed, 2 Dec 2020 02:21:23 +0100 Subject: [PATCH] Allow publishing same port as UDP and TCP Signed-off-by: adeniyistephen --- cli/compose/loader/merge.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }