docker-patterns

Installation
Summary

Docker and Docker Compose patterns for local development, multi-service orchestration, and container security.

  • Covers multi-stage Dockerfiles with dev, build, and production targets; Docker Compose configuration for web app stacks with PostgreSQL, Redis, and Mailpit; and override files for environment-specific settings
  • Includes service discovery via container networking, custom network isolation, and volume strategies (named volumes, bind mounts, anonymous volumes) for data persistence and hot reload
  • Provides container hardening practices: non-root users, capability dropping, read-only filesystems, and secret management via environment variables and Docker secrets
  • Offers debugging commands for logs, container inspection, network troubleshooting, and resource monitoring; documents anti-patterns like running as root, using latest tags, and storing data without volumes
SKILL.md

Docker Patterns

Docker and Docker Compose best practices for containerized development.

When to Activate

  • Setting up Docker Compose for local development
  • Designing multi-container architectures
  • Troubleshooting container networking or volume issues
  • Reviewing Dockerfiles for security and size
  • Migrating from local dev to containerized workflow

Docker Compose for Local Development

Standard Web App Stack

# docker-compose.yml
services:
Related skills
Installs
4.5K
GitHub Stars
179.7K
First Seen
Feb 13, 2026