docker-compose

docker-compose is a skill for Claude Code, Codex from kevinnft/ai-agent-skills. It costs 24 tokens per session (1,797 once invoked), scanned A, original, MIT.

A setup file for running several Docker containers together, such as an application, database, and cache. It describes each service, its connections, stored data, and startup dependencies.

In plain words
What is it for?
Defining Docker Compose services, networks, volumes, and dependencies in YAML. It helps run full-stack applications and test multiple services locally.
Why use it?
It avoids starting and connecting each container by hand. The same local environment can be recreated for development, testing, or simple deployments.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is file: ./secrets/db_password.txt.

Good fit Defining Docker Compose services, networks, volumes, and dependencies in YAML. It helps run full-stack applications and test multiple services locally.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/kevinnft/ai-agent-skills
agentmods
npx agentmods add skills/kevinnft/ai-agent-skills/docker-compose

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for docker-compose

README.md
[![agentmods](https://agentmods.dev/badge/skills/kevinnft/ai-agent-skills/docker-compose.svg)](https://agentmods.dev/skills/kevinnft/ai-agent-skills/docker-compose)
Your own site
<a href="https://agentmods.dev/skills/kevinnft/ai-agent-skills/docker-compose"><img src="https://agentmods.dev/badge/skills/kevinnft/ai-agent-skills/docker-compose.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,797 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.01797
Opus 5 $0.00012 $0.00898
Sonnet 5 $0.00005 $0.00359
Haiku 4.5 $0.00002 $0.00180

Measured 8d ago against content hash 039043e00520, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

docker-compose scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
skills/devops/docker-compose/SKILL.md · 403 lines

How it starts

The opening of the file, as written. The whole thing — 403 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Docker Compose — Multi-Container Orchestration

Manage multi-container Docker applications with docker-compose. Define services, networks, volumes, and dependencies in YAML. Perfect for local development, testing, and simple production deployments.

When to Use

  • Setting up local development environments
  • Running multi-service applications (app + database + cache)
  • Testing microservices locally
  • CI/CD pipeline containers
  • Simple production deployments

Core Concepts

Services

services:
  app:
    build: .
    ports:
      - "3000:3000"
    depends_on:
      - db
  
  db:
    image: postgres:15
    environment:
      POSTGRES_PASSWORD: secret
    volumes:
      - db-data:/var/lib/postgresql/data

volumes:
  db-data:

Networks

networks:
  frontend:
  backend:

services:
  app:
    networks:
      - frontend
      - backend
  
  db:
    networks:
      - backend

Common Patterns

1. Full-Stack App (Frontend + Backend + Database)

version: '3.8'

services:
  frontend:
    build: ./frontend
    ports:
      - "3000:3000"
    environment:
      - REACT_APP_API_URL=http://localhost:8000
    depends_on:
      - backend

  backend:
    build: ./backend
    ports:
      - "8000:8000"
    environment:
      - DATABASE_URL=postgresql://user:pass@db:5432/myapp
    depends_on:
      - db

  db:
    image: postgres:15
    environment:
      - POSTGRES_USER=user
      - POSTGRES_PASSWORD=pass
      - POSTGRES_DB=myapp
    volumes:
      - postgres-data:/var/lib/postgresql/data

volumes:
  postgres-data:

2. Microservices with Redis Cache

services:
  api:
    build: ./api
    ports:
      - "8000:8000"
    environment:
      - REDIS_URL=redis://cache:6379
    depends_on:
      - cache
      - db

  worker:
    build: ./worker
    environment:
      - REDIS_URL=redis://cache:6379
    depends_on:
      - cache

  cache:
    image: redis:7-alpine
    ports:
      - "6379:6379"

  db:
    image: postgres:15
    environment:
      - POSTGRES_PASSWORD=secret
    volumes:
      - db-data:/var/lib/postgresql/data

volumes:
  db-data:

Read the full file on GitHub · 403 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 403 lines · 24 tokens per session scan A 039043e00520

Subscribe to this mod's changes

docker-compose is a skill published in the GitHub repository kevinnft/ai-agent-skills (13 stars, last pushed 1mo ago), licensed MIT. It adds 24 tokens to every session and 1,797 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

compose

A guide to Docker Compose, a tool for defining and running applications made of multiple containers, such as a web app, API, and database.

chaterm/terminal-skills · 6 tokens

docker-expert

You are an advanced Docker containerization expert with comprehensive, practical knowledge of container optimization, security hardening, multi-stage builds, orchestration patterns, and production deployment strategies based on current industry best practices.

FilippoDeSilva/skills · 44 tokens

mochi-local-sandbox

Bring up and use a Mochi-managed local Iroha sandbox plus its local Torii MCP endpoint. Use when Codex needs a reliable local devnet, needs to print or verify the codex mcp add mochi-local --url ... command, or should consume the generated .env.local and .mochi/generated/ bootstrap files for local-only development.

hyperledger-iroha/iroha · 82 tokens

kubectl-investigator

Investigate a live or recent incident in a Kubernetes cluster. Anchor the window, bisect the change surface (rollouts, ConfigMaps/Secrets, RBAC, HPA/cluster changes, CronJobs), classify against four reference failure paths (OOM, DNS, cascading-failure, deploy-correlator), confirm the hypothesis with three independent…

anyshift-io/sre-skills · 159 tokens

Docker Compose Generator

Generates production-ready docker-compose.yml files for any application stack.

Notysoty/openagentskills · 17 tokens

container-manager-swarm

Docker Swarm cluster orchestration via the container-manager-mcp MCP server — initialize/leave a swarm, list nodes and services, and create or remove replicated services across the cluster. Use when the agent must operate a multi-host Swarm from a manager node, inventory cluster services/nodes, or deploy a service. Do…

Knuckles-Team/container-manager-mcp · 91 tokens