Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose the option to wait for docker_compose_v2 "up" #794

Closed
iay opened this issue Feb 7, 2024 · 1 comment · Fixed by #796
Closed

Expose the option to wait for docker_compose_v2 "up" #794

iay opened this issue Feb 7, 2024 · 1 comment · Fixed by #796
Labels
docker-compose-v2 Docker Compose v2 enhancement New feature or request

Comments

@iay
Copy link

iay commented Feb 7, 2024

SUMMARY

docker compose has an option --wait which causes the command to wait until the project is up and healthy.

I propose exposing this through the docker_compose_v2 module.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

community.docker.docker_compose_v2

ADDITIONAL INFORMATION

Currently if you use the module to start a compose project, the task completes immediately. This means that you don't know whether the containers in the project are stable, only that they have been started. The --wait option on docker compose up allows you to wait until any containers defining health checks are passing those checks. This means that your next task can reliably make use of the running containers.

@felixfontein
Copy link
Collaborator

#796 implements this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker-compose-v2 Docker Compose v2 enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants