Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

docker-compose-patterns

Skill by docker

Creates, reviews, and debugs Docker Compose configurations for multi-container stacks. Covers service definitions, health checks, dependency ordering, volumes, networks, environment variables, and development overrides. Built for developers wiring services together in compose.yaml.

  • Score 88
  • 660 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install docker-compose-patterns

Built from the published package, never by AI.

git clone --depth 1 https://github.com/docker/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/docker-compose-patterns ~/.claude/skills/docker-compose-patterns

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install docker-compose-patterns in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

docker-compose-patterns is an agent skill that gives rules for creating, reviewing, and debugging Docker Compose configurations. It applies when the main artifact is compose.yaml or compose.override.yaml and the task concerns service wiring rather than image-build internals. The rules cover service definitions, health checks, dependency ordering with service_healthy conditions, named volumes, networks, environment variables, and development overrides with Compose Watch.

The skill also sets guardrails for destructive commands. It says to state which data will be deleted and get explicit confirmation before running docker compose down -v or similar volume deletions. It points to a verification script that runs docker compose config --quiet, and to related skills for Dockerfiles and standalone Docker commands. It is aimed at developers who build or debug multi-container local setups and stacks with databases.

Written from the project's SKILL.md and checked against it.

What it can do

  • Service definitionsRules for clear service names, pinned image tags, and restart policies.
  • Health checksGuidance for health checks on database services and sidecars for distroless images.
  • Dependency orderingUses depends_on with service_healthy conditions to wait for readiness.
  • Volumes and networksGuidance on named volumes, bind mounts, and custom networks.
  • Environment variablesUses env_file and variable fallbacks instead of hardcoded secrets.
  • Development overridesSets up compose.override.yaml with bind mounts and debug ports.
  • Compose WatchConfigures develop.watch with sync, rebuild, and sync+restart actions.
  • Destructive command guardrailsRequires explicit confirmation before commands like docker compose down -v.
  • Configuration validationRuns verify-compose.sh, which wraps docker compose config --quiet.

What you need

  • Docker Compose v2

Try asking

  • Add a Postgres database with a health check to my compose.yaml
  • Make my worker service wait until the API is healthy in Compose
  • Set up a compose.override.yaml with bind mounts and Compose Watch

Good to know

  • Requires Docker Compose v2 with the compose.yaml format.
  • Not for Dockerfile internals, build caching, or image size. Use related skills for those.
  • The verification script may be missing in some distributions, such as the Claude plugin.
  • Plain docker compose config can expose credentials, so quiet validation is the default.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/docker-compose-patterns/SKILL.md, skills/docker-compose-patterns/scripts/verify-compose.sh. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md10 KB
  • agents/openai.yaml261 B
  • assets/bad-vs-good.md3 KB
  • assets/compose-dev-override.yaml858 B
  • assets/compose-web-app.yaml1 KB
Show all 11 files
  • checks/verification.md4 KB
  • evals/docker-compose-patterns.md8 KB
  • references/service-dependencies.md3 KB
  • references/volumes-and-networks.md3 KB
  • scripts/verify-compose.sh672 B
  • skill.yaml848 B

Alternatives to docker-compose-patterns

All alternatives →
deploy-release-testvercel
94

Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.

AAA Skill 144k
deepeval-tracingconfident-ai
94

Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.

AAA Skill 20k
azure-container-registry-cligithub
94

Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.

AAA Skill 42k
crabbox-appsopenclaw
94

Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.

AAA Skill 395k
gke-batch-hpcgoogle
94

Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.

AAA Skill 25k
gke-cost-analysisgoogle
94

Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.

AAA Skill 25k

Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli

docker-compose-patterns: common questions

Does this skill require Docker Compose v2?

Yes. The skill states it requires Docker Compose v2 and the compose.yaml format.

Will it delete my database volumes?

It asks for explicit user confirmation before running commands such as docker compose down -v, which deletes named volumes.

How does it handle health checks for distroless images?

It uses a healthcheck sidecar container that shares the application's network namespace, since distroless images have no shell or curl.

How do I install docker-compose-patterns?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is docker-compose-patterns free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is docker-compose-patterns safe to use?

It scores 88 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to docker-compose-patterns?

Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.

docker-compose-patterns Install

Add to stack

Loading.