docker-compose-development · git:20261120.76a1b83 · 2026-11-20 · sha256 b6c146fd2279540b
docker-compose-development git:20261120.76a1b83A
Immutable. This exact content never changes and is served at /api/v1/blob/b6c146fd2279540b.
No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_isst75p4nyg5nrcz/b6c146fd2279540bd0d57da68d33d7de172d1c412c273d5bccc0d0d4ecb81f79.json
Then /plugin install docker-compose-development@markdownregistry-isst75p4nyg5nrcz in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.
--- name: docker-compose-development description: Sets up a Docker Compose dev environment with health checks, ordered startup, sane volumes and seed data so a new teammate runs one command. --- # Docker Compose development Aim for `docker compose up` to give a working, seeded app with live reload. ## Steps 1. Read the app's start commands, ports and environment variables. List the services it needs: database, cache, queue, mail catcher. 2. Write `compose.yaml` (no `version:` key). Give each service a pinned image tag, not `latest`. 3. Add a `healthcheck` to every dependency, such as `pg_isready -U app` or `redis-cli ping`. Use `depends_on` with `condition: service_healthy` for the app. 4. Mount source code as a bind mount for reload; keep `node_modules` or the virtualenv in a named volume so the host does not overwrite it. Use named volumes for database data. 5. Put variables in `.env` and commit `.env.example`. Never commit real secrets. 6. Seed data with a one-shot service or an idempotent script (`docker compose run --rm seed`) that can run twice without duplicating rows. 7. Publish only the ports the developer needs, bound to `127.0.0.1`. 8. Add a `.dockerignore` and a multi-stage Dockerfile with a `dev` target. 9. Test it: `docker compose down -v`, then `docker compose up --build`, and confirm the app responds and the seed ran. ## Rules - Never run containers as privileged or mount the Docker socket without saying why. - Never use `docker compose down -v` on a developer's real data without warning; it deletes volumes. ## Report Services, ports, the one-line start command, and how to reset the data.