Skip to content

slow compose down when using depends_on #9800

@nico525

Description

@nico525

I have a compose file which is pretty complex that utilizes multiple depends_on in combination with service_healthy and service_started conditions.
I now figured out that the stopping of these containers is pretty slow. probably it tires to preserve some order in which the services are shut down.
Is there a way to bypass this and make the shutdown work fast again?
if I run the same compose file without any dependencies, the down command takes about 15 seconds compared to 4+ minutes when using depends_on

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions