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) {