{"id":15515413,"url":"https://github.com/nicolas-van/docker-compose-wait","last_synced_at":"2025-12-30T06:05:52.764Z","repository":{"id":57423227,"uuid":"121373816","full_name":"nicolas-van/docker-compose-wait","owner":"nicolas-van","description":"Some useful script to wait until all services declared in a docker-compose file are up and running.","archived":true,"fork":false,"pushed_at":"2020-08-14T06:54:24.000Z","size":73,"stargazers_count":29,"open_issues_count":2,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-26T05:17:20.899Z","etag":null,"topics":["docker","utility"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nicolas-van.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-13T11:18:26.000Z","updated_at":"2024-10-08T11:53:53.000Z","dependencies_parsed_at":"2022-09-05T11:10:37.226Z","dependency_job_id":null,"html_url":"https://github.com/nicolas-van/docker-compose-wait","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolas-van%2Fdocker-compose-wait","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolas-van%2Fdocker-compose-wait/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolas-van%2Fdocker-compose-wait/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolas-van%2Fdocker-compose-wait/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicolas-van","download_url":"https://codeload.github.com/nicolas-van/docker-compose-wait/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241948757,"owners_count":20047412,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","utility"],"created_at":"2024-10-02T10:01:53.927Z","updated_at":"2025-12-13T17:40:44.802Z","avatar_url":"https://github.com/nicolas-van.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# docker-compose-wait\n\n[![Build Status](https://travis-ci.org/nicolas-van/docker-compose-wait.svg?branch=master)](https://travis-ci.org/nicolas-van/docker-compose-wait)\n[![PyPI](https://img.shields.io/pypi/v/docker-compose-wait.svg)](https://pypi.org/project/docker-compose-wait/)\n\n\nSome useful script to wait until all services declared in a docker-compose file are up and running.\n\nThis script uses the health check mechanism provided since Docker 1.12. If your services have a configured health check, after making a `docker-compose up -d` you can simply call this script to have it wait until all your services health statuses are fixed. If they are all `healthy` it will return `0` if any of them is `unhealthy` (or `Down`) it will return -1.\n\nThis script can be useful, as example, in Continuous Integration or other situations when you just want to wait until a stack is deployed before performing other actions.\n\n*Please note this script does not do anything about dependencies startup order. See the [official documentation](https://docs.docker.com/compose/startup-order/) for that problem.*\n\n## Installation\n\n```\npip install docker-compose-wait\n```\n\nThis utility requires Python 2.7 or Python \u003e= 3.5. It also supports `docker-compose` from version 1.10.\n\n## Usage\n\n```\nusage: docker-compose-wait.py [options]\n\nWait until all services in a docker-compose file are healthy. Options are\nforwarded to docker-compose.\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -f FILE, --file FILE  Specify an alternate compose file (default: docker-\n                        compose.yml)\n  -p PROJECT_NAME, --project-name PROJECT_NAME\n                        Specify an alternate project name (default: directory\n                        name)\n  -w, --wait            Wait for all the processes to stabilize before exit\n                        (default behavior is to exit as soon as any of the\n                        processes is unhealthy)\n  -t TIMEOUT, --timeout TIMEOUT\n                        Max amount of time during which this command will run\n                        (expressed using the same format than in docker-\n                        compose.yml files, example: 5s, 10m,... ). If there is\n                        a timeout this command will exit returning 1.\n                        (default: wait for an infinite amount of time)\n```\n\nBasically it can be as simple as:\n\n```\ndocker-compose-wait\n```\n\n`docker-compose-wait` behaves like a `docker-compose` sub-command. It will forward the usual `docker-compose` command-line arguments. The above command will work fine if you previously ran `docker-compose up -d` by referencing the standard `docker-compose.yml` file. If you are using other files for your `docker-compose` configuration just use:\n\n```\ndocker-compose-wait -f \u003cpath_to_yaml_file\u003e -f \u003cpath_to_other_yaml_file\u003e ...\n```\n\n## License\n\n[See the license file](https://github.com/nicolas-van/docker-compose-wait/blob/master/LICENSE.md).\n\n## Contribution\n\n[See the contribution guide](https://github.com/nicolas-van/docker-compose-wait/blob/master/CONTRIBUTING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicolas-van%2Fdocker-compose-wait","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicolas-van%2Fdocker-compose-wait","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicolas-van%2Fdocker-compose-wait/lists"}