bug(compose): up -d --wait treats create-buckets exit(0) as failure
#510
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
docker compose -f docker-compose.prod.yml ... up -d --waitexits non-zero even when every service is healthy, because the one-shotcreate-bucketsservice exits 0 and--waitinterprets that as "not running, fail".Reproduction (from run 1496 log)
Stack functionally up. Smoke step never runs because
up -d --waitfails first.Fix
create-buckets: addrestart: "no"to declare one-shot intent.backend.depends_on: addcreate-buckets: condition: service_completed_successfully.With both in place, Docker Compose v2.20+ understands
create-bucketsis a one-shot that must complete successfully, and--waittreatsexited(0)as the target state. The backend correctly gates startup behind bucket bootstrap (closes a latent race: backend currently starts in parallel with create-buckets even though it needs the bucket + policy to exist).Discovered
While running
nightly.ymlagainst staging after #506/#508 unblocked the prior layers. The runtime stack is now healthy (verified via direct curl against staging.raddatz.cloud); only the workflow's own wait gate fails.