docker-compose-services

docker-compose-services is a skill for Claude Code, Codex from vikasudasi/skill-vault. It costs 25 tokens per session (427 once invoked), scanned C, original, Apache-2.0.

A guide to running several containers together with Docker Compose. Containers are isolated processes, and Compose describes how an application, database, worker, and other parts run and connect.

In plain words
What is it for?
Use it to define services, networks, persistent storage, environment settings, dependency health checks, and validation for a multi-container application.
Why use it?
It prevents common setup problems such as using the wrong network address, losing database data, starting services before dependencies are ready, or overriding configuration unexpectedly.

Skill for Claude CodeCodex

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 skills/vikasudasi/skill-vault/docker-compose-services
Any agent
npx skills add vikasudasi/skill-vault --skill docker-compose-services
Clone the repo
git clone --depth 1 https://github.com/vikasudasi/skill-vault

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/vikasudasi/skill-vault/docker-compose-services.svg)](https://agentmods.dev/skills/vikasudasi/skill-vault/docker-compose-services)
Your own site
<a href="https://agentmods.dev/skills/vikasudasi/skill-vault/docker-compose-services"><img src="https://agentmods.dev/badge/skills/vikasudasi/skill-vault/docker-compose-services.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 427 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 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 $0.00025 $0.00427
Opus 5 $0.00013 $0.00214
Sonnet 5 $0.00005 $0.00085
Haiku 4.5 $0.00003 $0.00043

Measured 4d ago against content hash d598be99671f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

docker-compose-services scanned grade C 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 4d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- As root, `docker compose up -d` and `rm -rf` on mounted dirs can clobber host
skill_vault/data/skills/docker-compose-services/SKILL.md · 63 lines

What it actually says

Docker Compose for Multi-Service Apps

Use when running several containers together (app + db + worker) on one host.

Basic compose file

services:
  web:
    build: .
    ports: ["8080:8080"]
    environment:
      - DATABASE_URL=postgres://u:p@db:5432/app
    depends_on:
      db:
        condition: service_healthy
  db:
    image: postgres:16
    environment:
      - POSTGRES_PASSWORD=p
    healthcheck:
      test: ["CMD", "pg_isready", "-U", "postgres"]
      interval: 5s
      timeout: 3s
      retries: 5

Key practices

  • Plug service-to-service refs over the compose network by service name (db), not localhost.
  • Add healthcheck to dependencies and gate with depends_on: condition.
  • Use volumes for durable data; bind mounts only for dev.

Pitfalls

  • Compose merges override files: a docker-compose.override.yml replaces the whole ports: list, it doesn't append. Use one standalone file or explicit overrides, or you'll reintroduce port conflicts.
  • As root, docker compose up -d and rm -rf on mounted dirs can clobber host files — scope operations carefully.
  • Prefer docker compose config to validate before up.

Verify

docker compose config --quiet
docker compose ps
docker compose logs -f web
Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 63 lines · 25 tokens per session scan C d598be99671f

Subscribe to this mod's changes

docker-compose-services is a skill published in the GitHub repository vikasudasi/skill-vault (0 stars, last pushed 19d ago), licensed Apache-2.0. It adds 25 tokens to every session and 427 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

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

docker-compose

Multi-service docker-compose orchestration — service dependency ordering, profiles, override files, environment-specific configs, rolling restarts, and compose-based dev/prod parity patterns.

LuuOW/meridian-mcp · 35 tokens

compose

Skill "compose" from chaterm/terminal-skills, covering docker compose 编排, 概述, 基础命令, 启动服务 and 停止服务.

chaterm/terminal-skills · 6 tokens

docker

Use when authoring or auditing a Dockerfile, shrinking a bloated image, hardening a container that runs as root, picking a base image, or wiring a Compose dev loop with hot reload. NOT CI builds or deploy-to-host (that is deployment), NOT k8s autoscaling (that is scaling), NOT app-level injection or secrets-in-code…

ericrisco/rsc-harness · 86 tokens

container-manager-kubernetes-operations

Full operational Kubernetes surface via the container-manager-mcp MCP server — workloads (pods/rollouts/StatefulSets/DaemonSets/ReplicaSets/Jobs/CronJobs), config (ConfigMaps/Secrets/Namespaces/CRDs/patch), networking (Ingress/native Services/NetworkPolicy/DNS), storage (PV/PVC/StorageClass/snapshots/CSI), RBAC…

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

container-manager-config-walkthrough

End-user setup guide for the container-manager-mcp MCP server — choosing CONTAINERMANAGERTYPE (docker/podman/kubernetes/multi), wiring .env / mcpconfig toggles, connecting remote Docker/Podman hosts via the tunnel-manager inventory versus remote Kubernetes clusters via kubeconfig contexts, and a first-run verification…

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