fix(compose): avoid creating a default network unnecessarily BE-11427 (#169)

This commit is contained in:
andres-portainer
2024-11-26 19:48:49 -03:00
committed by GitHub
parent 145ffeea40
commit 5d2689b139
+2
View File
@@ -128,6 +128,8 @@ func (c *ComposeDeployer) Deploy(ctx context.Context, filePaths []string, option
return withComposeService(ctx, filePaths, options.Options, func(composeService api.Service, project *types.Project) error {
addServiceLabels(project, false)
project = project.WithoutUnnecessaryResources()
var opts api.UpOptions
if options.ForceRecreate {
opts.Create.Recreate = api.RecreateForce