mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
feat(libstack): update Compose to v2.31.0 BE-11416 (#223)
This commit is contained in:
parent
97e7a3c5e2
commit
d295968948
8 changed files with 223 additions and 272 deletions
|
@ -140,7 +140,10 @@ func (c *ComposeDeployer) Deploy(ctx context.Context, filePaths []string, option
|
|||
}
|
||||
|
||||
opts.Create.RemoveOrphans = options.RemoveOrphans
|
||||
opts.Start.CascadeStop = options.AbortOnContainerExit
|
||||
|
||||
if options.AbortOnContainerExit {
|
||||
opts.Start.OnExit = api.CascadeStop
|
||||
}
|
||||
|
||||
if err := composeService.Build(ctx, project, api.BuildOptions{}); err != nil {
|
||||
return fmt.Errorf("compose build operation failed: %w", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue