mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
fix(compose): avoid creating a default network unnecessarily BE-11427 (#169)
This commit is contained in:
parent
145ffeea40
commit
5d2689b139
1 changed files with 2 additions and 0 deletions
|
@ -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 {
|
return withComposeService(ctx, filePaths, options.Options, func(composeService api.Service, project *types.Project) error {
|
||||||
addServiceLabels(project, false)
|
addServiceLabels(project, false)
|
||||||
|
|
||||||
|
project = project.WithoutUnnecessaryResources()
|
||||||
|
|
||||||
var opts api.UpOptions
|
var opts api.UpOptions
|
||||||
if options.ForceRecreate {
|
if options.ForceRecreate {
|
||||||
opts.Create.Recreate = api.RecreateForce
|
opts.Create.Recreate = api.RecreateForce
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue