docker-compose-setup

docker-compose-setup is a command for coding agents from TheBeardedBearSAS/claude-craft. It costs 3 tokens per session (1,496 once invoked), scanned A, original, MIT.

A command that creates a Docker Compose configuration for a multi-service environment. Docker Compose is a tool for defining and running related containers from one configuration file.

In plain words
What is it for?
Use it to configure services such as PostgreSQL, Redis, and RabbitMQ for development, staging, or production projects.
Why use it?
It helps turn a list of services, development or production context, and technology stack into a usable container setup with the required connections and settings.

Command

Part of the claude-craft plugin — 56 skills, 94 commands, 47 agents, 5 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/thebeardedbearsas/claude-craft/docker-compose-setup
Clone the repo
git clone --depth 1 https://github.com/TheBeardedBearSAS/claude-craft

Or install claude-craft, the plugin that ships this one along with the rest of its 56 skills, 94 commands, 47 agents, 5 hooks.

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-setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/thebeardedbearsas/claude-craft/docker-compose-setup.svg)](https://agentmods.dev/commands/thebeardedbearsas/claude-craft/docker-compose-setup)
Your own site
<a href="https://agentmods.dev/commands/thebeardedbearsas/claude-craft/docker-compose-setup"><img src="https://agentmods.dev/badge/commands/thebeardedbearsas/claude-craft/docker-compose-setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 3 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,496 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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.00003 $0.01496
Opus 5 $0.00002 $0.00748
Sonnet 5 $0.00001 $0.00299
Haiku 4.5 $0.00000 $0.00150

Measured yesterday against content hash 5448104c4a2e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

docker-compose-setup 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 yesterday.

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"]
Infra/i18n/de/Docker/commands/docker-compose-setup.md · 260 lines

How it starts

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

Docker Compose Einrichtung

Du bist ein Docker Compose Orchestrierungs-Experte. Du musst eine vollständige und optimierte Konfiguration für eine Multi-Service-Umgebung generieren.

Argumente

$ARGUMENTS

Argumente:

  • Benötigte Services (z.B. postgres, redis, rabbitmq)
  • Kontext: dev, staging, prod
  • Tech Stack (z.B. symfony, node, python)

Beispiel: /docker:compose-setup postgres,redis context:dev stack:symfony

Plan-Modus

Der Plan-Modus ist obligatorisch. Vor der Ausführung aktiviert Claude den Plan-Modus, um betroffenen Code zu analysieren, einen Implementierungsplan vorzuschlagen und auf Ihre Validierung zu warten, bevor Änderungen vorgenommen werden.

MISSION

Schritt 1: Anforderungen analysieren

Services und ihre Interaktionen identifizieren:

══════════════════════════════════════════════════════════════
🐳 DOCKER COMPOSE ANALYSE
══════════════════════════════════════════════════════════════

Projekt: {name}
Kontext: {dev|staging|prod}
Stack: {stack}

──────────────────────────────────────────────────────────────
📋 IDENTIFIZIERTE SERVICES
──────────────────────────────────────────────────────────────

| Service | Image | Interner Port | Exponierter Port | Volumes |
|---------|-------|---------------|------------------|---------|
| app | custom | 3000 | 3000 | code |
| db | postgres:16 | 5432 | 5432 (dev) | data |
| redis | redis:7 | 6379 | - | data |

Schritt 2: docker-compose.yml generieren

# docker-compose.yml - Gemeinsame Basis
version: "3.8"

services:
  app:
    build:
      context: .
      dockerfile: Dockerfile
      target: development
    volumes:
      - .:/app:cached
      - /app/node_modules
    environment:
      - NODE_ENV=development
      - DATABASE_URL=postgresql://user:password@db:5432/app
      - REDIS_URL=redis://redis:6379
    depends_on:
      db:
        condition: service_healthy
      redis:
        condition: service_healthy
    networks:
      - backend

  db:
    image: postgres:16-alpine
    environment:
      POSTGRES_USER: user
      POSTGRES_PASSWORD: password
      POSTGRES_DB: app
    volumes:
      - postgres_data:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U user -d app"]
      interval: 10s
      timeout: 5s
      retries: 5
    networks:
      - backend

  redis:
    image: redis:7-alpine
    command: redis-server --appendonly yes
    volumes:
      - redis_data:/data
    healthcheck:
      test: ["CMD", "redis-cli", "ping"]
      interval: 10s
      timeout: 5s
      retries: 5
    networks:
      - backend

networks:
  backend:

volumes:
  postgres_data:
  redis_data:

Read the full file on GitHub · 260 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. yesterday First seen · 260 lines · 3 tokens per session scan A 5448104c4a2e

Subscribe to this mod's changes

docker-compose-setup is a command published in the GitHub repository TheBeardedBearSAS/claude-craft (105 stars, last pushed 2d ago), licensed MIT. It adds 3 tokens to every session and 1,496 once invoked, about $0.0000 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-09-03.