Docker compose

From clawic/skills · View interactive version

Docker compose is an AI agent skill from the GitHub repository clawic/skills. Define multi-container applications with proper dependency handling, networking, and volume management.

How to use this skill

Skill file

depends_on Ready Condition

depends_on:
  db:
    condition: service_healthy

Healthcheck start_period

healthcheck:
  test: ["CMD", "pg_isready"]
  start_period: 30s

Volume Destruction

Resource Limits in Development

deploy:
  resources:
    limits:
      memory: 512M

.dockerignore

Override File Pattern

Profiles for Optional Services

services:
  mailhog:
    profiles: [dev]

Environment Variable Precedence

  1. Shell environment (highest)
  2. .env file in compose directory
  3. env_file: directive
  4. environment: in compose file (lowest for that var)
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.