agentleFS
salmandevsalmandev/everything-gemini/skills/docker-compose-orchestrator/SKILL.md

docker-compose-orchestrator

Skill2 starsChanged 28 days agoApache-2.0View on GitHub

Architects, configures, and troubleshoots multi-container Docker Compose environments, database services (Postgres, pgvector, Redis), healthchecks, and local dev networking.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Always define explicit healthcheck blocks for stateful services (databases, caches, message brokers).

    line 15
  2. Very specific:

    Use depends_on: { condition: service_healthy } to prevent app containers from starting before databases are ready.

    line 16
  3. Very specific:

    Use .env.example templates with sensible local defaults.

    line 20

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Docker Compose Multi-Service Orchestrator

This skill guides the design, hardening, and troubleshooting of multi-container local and staging environments using Docker Compose v2.


1. Core Principles

  1. Deterministic Healthchecks:
    • Always define explicit healthcheck blocks for stateful services (databases, caches, message brokers).
    • Use depends_on: { condition: service_healthy } to prevent app containers from starting before databases are ready.
  2. Persistent Named Volumes:
    • Store persistent data (e.g., PostgreSQL data, Redis dumps, uploaded media) in named volumes, never in ephemeral container layers.
  3. Environment Isolation:
    • Use .env.example templates with sensible local defaults; never hardcode production secrets in compose files.

2. Production-Grade Compose Blueprint

Example architecture pairing an application server with PostgreSQL (pgvector enabled) and Redis caching:

version: '3.8'

services:
  db:
    image: pgvector/pgvector:pg16
    container_name: app_db
    environment:
      POSTGRES_USER: ${POSTGRES_USER:-postgres}
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
      POSTGRES_DB: ${POSTGRES_DB:-app_dev}
    ports:
      - "5432:5432"
    volumes:
      - pgdata:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U postgres"]
      interval: 5s
      timeout: 5s
      retries: 5
    networks:
      - app-net

  redis:
    image: redis:7-alpine
    container_name: app_redis
    ports:
      - "6379:6379"
    volumes:
      - redisdata:/data
    healthcheck:
      test: ["CMD", "redis-cli", "ping"]
      interval: 5s
      timeout: 3s
      retries: 5
    networks:
      - app-net

volumes:
  pgdata:
  redisdata:

networks:
  app-net:
    driver: bridge

3. Common Operations & Diagnostics

CommandAction
docker compose up -dStart all services in the background
docker compose psInspect service health and exposed ports
docker compose logs -f <service>Stream logs for a specific container
docker compose down -vTear down containers and wipe persistent volumes
docker compose exec <service> shOpen an interactive shell inside a container

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.