1
0
Fork 0
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:
andres-portainer 2024-12-09 16:36:57 -03:00 committed by GitHub
parent 97e7a3c5e2
commit d295968948
8 changed files with 223 additions and 272 deletions

View file

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