docs(compose): describe dependency_wait.go and fix the header of service_containers.go

The header of service_containers.go still listed the dependency waits among
what it covers.

Comments only.

Part of #14081

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2026-10-27 11:35:18 +01:00 • committed by Nicolas De loof
parent b81649f428
commit af91bc46a9
2 changed files with 8 additions and 2 deletions

View file

@ -31,6 +31,12 @@ import (
"github.com/docker/compose/v5/pkg/api"
)
// This file gathers the waits on depends_on conditions: the polling of a
// dependency's containers (waitDependency and the per-condition checks), shared
// by the plan's OpWaitCondition nodes and by the commands that wait outside a
// plan (waitDependencies: restart, run and the --wait verification of up and
// start), and the gate deciding which dependencies need a wait at all.
// ServiceConditionRunningOrHealthy is a service condition on status running or healthy
const ServiceConditionRunningOrHealthy = "running_or_healthy"

View file

@ -40,8 +40,8 @@ import (
// create/up/start) and by the commands that still walk the dependency order
// themselves (dependencies.go: restart, stop, down and the classic build). It
// covers container naming, resolution of service references (volumes_from,
// network_mode/ipc/pid, links), dependency waiting and container creation
// through the Docker API.
// network_mode/ipc/pid, links) and container creation through the Docker API;
// the waits on depends_on conditions are in dependency_wait.go.
const (
doubledContainerNameWarning = "WARNING: The %q service is using the custom container name %q. " +