From 151dfe7e6513e6ae91b201107d9ab4413fd5e37c Mon Sep 17 00:00:00 2001 From: Chaim Lev-Ari Date: Fri, 8 Oct 2021 01:59:50 +0300 Subject: [PATCH] fix(compose): use tcp for agent proxy EE-1807 (#5854) --- api/exec/compose_stack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/exec/compose_stack.go b/api/exec/compose_stack.go index a30314ca6..3bdb43430 100644 --- a/api/exec/compose_stack.go +++ b/api/exec/compose_stack.go @@ -93,7 +93,7 @@ func (manager *ComposeStackManager) fetchEndpointProxy(endpoint *portainer.Endpo return "", nil, err } - return fmt.Sprintf("http://127.0.0.1:%d", proxy.Port), proxy, nil + return fmt.Sprintf("tcp://127.0.0.1:%d", proxy.Port), proxy, nil } func createEnvFile(stack *portainer.Stack) (string, error) {