diff --git a/api/exec/compose_wrapper.go b/api/exec/compose_wrapper.go index 18fe87d66..5f91795fd 100644 --- a/api/exec/compose_wrapper.go +++ b/api/exec/compose_wrapper.go @@ -13,10 +13,6 @@ import ( "github.com/portainer/portainer/api/http/proxy" ) -const ( - composeSyntaxMaxVersion = "3.8" -) - // ComposeWrapper is a wrapper for docker-compose binary type ComposeWrapper struct { binaryPath string @@ -37,7 +33,7 @@ func NewComposeWrapper(binaryPath string, proxyManager *proxy.Manager) *ComposeW // ComposeSyntaxMaxVersion returns the maximum supported version of the docker compose syntax func (w *ComposeWrapper) ComposeSyntaxMaxVersion() string { - return composeSyntaxMaxVersion + return portainer.ComposeSyntaxMaxVersion } // Up builds, (re)creates and starts containers in the background. Wraps `docker-compose up -d` command