defang icon indicating copy to clipboard operation
defang copied to clipboard

Docker compose parity: add --wait and --wait-timeout

Open lionello opened this issue 1 year ago • 1 comments

      --wait                      Wait for services to be running|healthy. Implies detached mode.
      --wait-timeout int          Maximum duration to wait for the project to be running|healthy.

lionello avatar Jun 26 '24 23:06 lionello

--wait is implied for all defang compose up, --wait-timeout is useful for CI. CLI should exit with non-zero when the timeout is reached. Can use the golang context.WithTimeout feature to cancel the CLI.

lionello avatar Jul 29 '24 18:07 lionello