From 4e39c877dddc26a5ea9a8c12146d813451851de3 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Mon, 30 Mar 2020 14:31:09 -0400 Subject: [PATCH] Allow publishing same port as UDP and TCP using docker stack deploy Signed-off-by: Lex Neva --- 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 }