Claude Code Docker Compose Skill for Service Readiness
Generate a Compose file in which a dependent application waits for the health of a database service.
中文Install in Claude Code
Use a local Docker Compose setup with the relevant Dockerfile or image. A disposable development project works for the example.
- Get the complete `plugins/devops/docker-compose-generator/skills/generating-docker-compose-files` directory from the pinned GitHub checkout.
- Copy it under the target project's `.claude/skills/`. Confirm `.claude/skills/generating-docker-compose-files/SKILL.md`, open Claude Code at the project root, and call `/generating-docker-compose-files`.
Example task
Draft a Compose configuration for a notebook app with `web` and `db`. Make web startup depend on a passing database healthcheck.What to check
The rendered configuration contains the database probe and `service_healthy` dependency. A test run can confirm the observed order.
Original SKILL.md on GitHub · Updated
Frequently asked question
Does a short-form dependency wait for readiness?
Use a healthcheck with `service_healthy` when readiness matters to a dependent service.