docker-compose-local-setup

docker-compose-local-setup is a skill for Claude Code, Codex from soulcodex/agentic. It costs 52 tokens per session (702 once invoked), scanned A, original, MIT.

A guide for running several local services together with Docker Compose, a tool that defines and starts related containers from one configuration. It covers applications, databases, caches, message brokers, and one-time setup jobs.

In plain words
What is it for?
Use it to set up a local API, worker, frontend, database, cache, or broker stack. It also helps configure ports, environment files, persistent volumes, migrations, seed data, verification, and cleanup.
Why use it?
It prevents services from starting in the wrong order or without required configuration. Health checks and readiness rules help dependent services wait until their dependencies are usable.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex; mentions OpenCode.

Good fit Use it to set up a local API, worker, frontend, database, cache, or broker stack. It also helps configure ports, environment files, persistent volumes, migrations, seed data, verification, and cleanup.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/soulcodex/agentic/docker-compose-local-setup
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.

Any agent
npx skills add soulcodex/agentic --skill docker-compose-local-setup
Clone the repo
git clone --depth 1 https://github.com/soulcodex/agentic

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/soulcodex/agentic/docker-compose-local-setup/github.svg)](https://agentmods.dev/skills/soulcodex/agentic/docker-compose-local-setup)
Your own site
<a href="https://agentmods.dev/skills/soulcodex/agentic/docker-compose-local-setup"><img src="https://agentmods.dev/badge/skills/soulcodex/agentic/docker-compose-local-setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for docker-compose-local-setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/soulcodex/agentic/docker-compose-local-setup"><img src="https://agentmods.dev/badge/skills/soulcodex/agentic/docker-compose-local-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 702 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00052 $0.00702
Opus 5.5 $0.00021 $0.00281
Sonnet 5.5 $0.00010 $0.00140
Haiku 4.5 $0.00005 $0.00070

Measured 1mo ago against content hash 4dc25265677c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docker-compose-local-setup scanned grade A with 0 findings 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 1mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/devops/docker-compose-local-setup/SKILL.md · 95 lines

How it starts

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

Docker Compose Local Setup Skill

Set up or improve local multi-service orchestration with docker compose.

Step 1 — Model Local Services

Define the local stack in compose.yaml:

  • app services (API, worker, frontend)
  • stateful dependencies (database, cache, broker)
  • one-off jobs (migrations, seeds)

Keep local concerns explicit and avoid production-only orchestration details.

Step 2 — Configure Build, Runtime, and Networking

For each service:

  • Use build: for local image workflows or image: when fixed images are preferred.
  • Set deterministic container_name only when needed for tooling compatibility.
  • Map ports required for local access.
  • Use the default compose network unless isolation is required.

Step 3 — Add Health Checks and Readiness

For services that others depend on:

  • Add healthcheck: with realistic command, interval, timeout, retries, and start period.
  • Prefer depends_on with condition: service_healthy where supported by your compose implementation.
  • If condition-based readiness is unavailable, add explicit wait logic in dependent services.

Step 4 — Manage Configuration and Secrets for Local Use

  • Use env_file: for shared local defaults.
  • Keep per-service overrides in environment:.
  • Commit only safe sample files such as .env.example.
  • Never hardcode credentials in compose.yaml or checked-in env files.

Step 5 — Persist Data and Source Mounts

  • Use named volumes for database/cache durability across restarts.
  • Use bind mounts for hot-reload source workflows when appropriate.
  • Keep mount paths narrow to avoid accidental host pollution.

Step 6 — Handle Migrations and Seed Data

Define one-off jobs for schema and seed flows:

  • migration service/command that runs after dependencies are healthy
  • optional seed service for local fixtures
  • idempotent commands so repeated local setup is safe

Step 7 — Verify End-to-End Startup

Run and validate:

  1. docker compose up --build -d
  2. docker compose ps
  3. docker compose logs --tail=200
  4. service-specific checks (HTTP health endpoint, DB connectivity)

Read the full file on GitHub · 95 lines

Files

What ships with it

1 file 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. 1mo ago First seen · 95 lines · 52 tokens per session scan A 4dc25265677c

Subscribe to this mod's changes

docker-compose-local-setup is a skill published in the GitHub repository soulcodex/agentic (10 stars, last pushed 1mo ago), licensed MIT. It adds 52 tokens to every session and 702 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. 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

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

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

harbor

CLI toolkit for managing containerized LLM services. Use when the user wants to start, stop, configure, or manage AI/LLM services like Ollama, Open WebUI, llama.cpp, vLLM, LiteLLM, ComfyUI, and 250+ others. Triggers on requests to "run a model", "start ollama", "set up an LLM", "configure harbor", "manage services"…

av/harbor · 114 tokens

agentbox-info

Spin up isolated sandboxes ("boxes") for coding agents, run them in parallel, queue background runs with -i, and push commits safely through the host relay. Use when the user wants to run Claude Code / Codex / OpenCode in a sandbox, start more boxes, attach to a running box, or otherwise operate the agentbox CLI on…

madarco/agentbox · 79 tokens

04-security

A security and operations guide for deploying Dify, an open-source platform for building AI applications, in production.

skillmds/skillmd · 36 tokens

run-app

Build and start the Mendix app in Docker, and restart it after changes. Use when asked to run, launch or restart the app in a container. For the fast inner loop prefer run-local.

mendixlabs/mxcli · 43 tokens