diff --git a/pkg/compose/service_containers.go b/pkg/compose/service_containers.go index 2337765ad..0ac19ee9b 100644 --- a/pkg/compose/service_containers.go +++ b/pkg/compose/service_containers.go @@ -591,7 +591,6 @@ func (s *composeService) startService(ctx context.Context, if service.Deploy != nil && service.Deploy.Replicas != nil && *service.Deploy.Replicas == 0 { return nil } - err := s.waitDependencies(ctx, project, service.Name, service.DependsOn, containers, timeout) if err != nil { return err @@ -601,6 +600,13 @@ func (s *composeService) startService(ctx context.Context, if service.GetScale() == 0 { return nil } + if service.Provider != nil { + // a provider-backed service usually has no container of its own + // (it gets one — the relay — only when the provider published + // endpoints), so a project made only of provider services + // legitimately reaches the start phase with no container at all + return nil + } return errNoContainerToStart(service.Name) }