{"id":20324661,"url":"https://github.com/gh640/docker-compose-depends_on-examples","last_synced_at":"2026-05-07T12:32:33.988Z","repository":{"id":74923519,"uuid":"358764991","full_name":"gh640/docker-compose-depends_on-examples","owner":"gh640","description":"Docker Compose `depends_on` examples.","archived":false,"fork":false,"pushed_at":"2021-04-17T02:39:22.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-14T14:17:32.458Z","etag":null,"topics":["docker","docker-compose"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gh640.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-17T02:17:10.000Z","updated_at":"2021-04-17T02:39:24.000Z","dependencies_parsed_at":"2023-04-06T04:31:58.883Z","dependency_job_id":null,"html_url":"https://github.com/gh640/docker-compose-depends_on-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh640%2Fdocker-compose-depends_on-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh640%2Fdocker-compose-depends_on-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh640%2Fdocker-compose-depends_on-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh640%2Fdocker-compose-depends_on-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gh640","download_url":"https://codeload.github.com/gh640/docker-compose-depends_on-examples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241827881,"owners_count":20026791,"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","docker-compose"],"created_at":"2024-11-14T19:37:02.434Z","updated_at":"2026-05-07T12:32:33.959Z","avatar_url":"https://github.com/gh640.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Compose `depends_on` examples\n\n`depends_on` can be used in the following formats.\n\n- List\n- Object\n\n## List\n\n```bash\ndepends_on:\n  - service_a\n```\n\n- `docker-compose.list-chained.yml`\n- `docker-compose.list-simple.yml`\n\n## Object\n\n### `service_started`\n\n```bash\ndepends_on:\n  service_a:\n    condition: service_started\n```\n\n- `docker-compose.object-service_started-problematic.yml`\n- `docker-compose.object-service_started.yml`\n\n### `service_healthy`\n\n```bash\ndepends_on:\n  service_a:\n    condition: service_healthy\n```\n\n- `docker-compose.object-service_healthy-failure.yml`\n- `docker-compose.object-service_healthy.yml`\n\n### `service_completed_successfully`\n\n```bash\ndepends_on:\n  service_a:\n    condition: service_completed_successfully\n```\n\n- `docker-compose.object-service_completed_successfully-failure.yml`\n- `docker-compose.object-service_completed_successfully.yml`\n\n## Links\n\n- [`compose-spec/spec.md` at master · `compose-spec/compose-spec` · GitHub](https://github.com/compose-spec/compose-spec/blob/master/spec.md#depends_on)\n- [`depends_on` | Compose file version 3 reference | Docker Documentation](https://docs.docker.com/compose/compose-file/compose-file-v3/#depends_on)\n- [`depends_on` | Compose file version 2 reference | Docker Documentation](https://docs.docker.com/compose/compose-file/compose-file-v2/#depends_on)\n- Japanese post: [Docker Compose の depends_on の使い方まとめ | gotohayato.com](https://gotohayato.com/content/533/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgh640%2Fdocker-compose-depends_on-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgh640%2Fdocker-compose-depends_on-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgh640%2Fdocker-compose-depends_on-examples/lists"}