compose-patterns

Docker Compose Patterns Reference

Content Preview
# Docker Compose Patterns Reference

## Production-Ready Patterns

### Web App + Database + Cache

```yaml
services:
  app:
    build:
      context: .
      dockerfile: Dockerfile
    ports:
      - "3000:3000"
    env_file:
      - .env
    depends_on:
      db:
        condition: service_healthy
      redis:
        condition: service_healthy
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
      interval: 30s
      timeout: 3s
      retries: 3
      start_pe
How to Use

Recommended: Install to project (local)

mkdir -p .claude/skills
curl -o .claude/skills/compose-patterns.md \
  https://raw.githubusercontent.com/alirezarezvani/claude-skills/main/engineering/docker-development/references/compose-patterns.md

Skill is scoped to this project only. Add .claude/skills/ to your .gitignoreif you don't want to commit it.

Alternative: Clone full repo

git clone https://github.com/alirezarezvani/claude-skills

Then reference at engineering/docker-development/references/compose-patterns.md

Related Skills