The docker-patterns skill provides developers with Docker and Docker Compose templates and best practices for local development environments, multi-container architectures, and production-ready deployments. It addresses common challenges in containerized workflows including service orchestration, networking, volume management, and security by offering concrete examples like multi-stage Dockerfiles, development-to-production configurations, and pre-configured service stacks with databases, caching, and testing tools. This skill is designed for teams migrating from local development to containerized workflows or building scalable multi-service applications.

skills.sh installs
6.8K
GitHub stars
229.1K
last updated
Jul 14, 2026

Install

$ npx -y skills add affaan-m/everything-claude-code --skill docker-patterns --agent claude-code

Installs into .claude/skills of the current project.

Files

Docker Patterns

Docker and Docker Compose best practices for containerized development.

Docker Compose for Local Development

Standard Web App Stack

# docker-compose.yml
services:
  app:
    build:
      context: .
      target: dev                     # Use dev stage of multi-stage Dockerfile
    ports:
      - "3000:3000"
    volumes:
      - .:/app                        # Bind mount for hot reload
      - /app/node_modules             # Anonymous volume -- preserves container deps
    environment:
      - DATABASE_URL=postgres://postgres:postgres@db:5432/app_dev
      - REDIS_URL=redis://redis:6379/0
      - NODE_ENV=development
    depends_on:
      db:
        condition: service_healthy
      redis:
        condition: service_started
    command: npm run dev

Sponsors

Details

Repository
github.com/affaan-m/everything-claude-code
Category
DevOps & CI/CD

More from affaan-m/everything-claude-code

All 256
1calm-north avatarbuild-linkscalm-north/seojuice-skillsDesign a link building campaign with prospect identification, asset creation, and outreach strategy. Use when the user asks about link building, backlinks, doma6.5Kskills.sh installs
2hashicorp avatarterraform-stackshashicorp/agent-skillsComprehensive guide for working with HashiCorp Terraform Stacks. Use when creating, modifying, or validating Terraform Stack configurations (.tfcomponent.hcl, .5.8Kskills.sh installs
3jeffallan avatarterraform-engineerjeffallan/claude-skillsUse when implementing infrastructure as code with Terraform across AWS, Azure, or GCP. Invoke for module development (create reusable modules, manage module ver5.7Kskills.sh installs
4affaan-m avatarcost-aware-llm-pipelineaffaan-m/eccCost optimization patterns for LLM API usage — model routing by task complexity, budget tracking, retry logic, and prompt caching.5.6Kskills.sh installs
5affaan-m avataropensource-pipelineaffaan-m/eccOpen-source pipeline: fork, sanitize, and package private projects for safe public release. Chains 3 agents (forker, sanitizer, packager). Triggers: '/opensourc5.4Kskills.sh installs
6affaan-m avatarcost-aware-llm-pipelineaffaan-m/everything-claude-codecost aware llm pipeline5.4Kskills.sh installs