Skip to content
Back to skills

Docker Compose Development

ASecurity

Sets up a Docker Compose dev environment with health checks, ordered startup, sane volumes and seed data so a new teammate runs one command.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 15, 2026
ai-agentsnodedockerdatabase

Works with

  • cli

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add workspace-templates/ai-agent-templates --skill docker-compose-development --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docker Compose Development?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Docker Compose Development
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/workspace-templates-docker-compose-development/badge)](https://www.skillsdirectory.com/skills/workspace-templates-docker-compose-development)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.