
Docker Patterns
Covers the Docker Compose patterns you actually need for local development: multi-stage Dockerfiles that separate dev from production builds, service dependency management with health checks, volume strategies that preserve your node_modules while enabling hot reload, and network isolation between frontend and backend services. The examples are practical (complete postgres and redis setups, debugging commands, proper secret handling) and it includes the security hardening steps people usually skip until something breaks. Especially useful if you're moving a project into containers or debugging why your database connection works locally but not in Docker.
- skills.sh installs
- 7.7K
- GitHub stars
- 300.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add affaan-m/ecc --skill docker-patterns --agent claude-codeInstalls 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/ecc
- Categories
- Security, DevOps & CI/CD, Automation & Workflows, Mobile Development
- First seen
- Jul 14, 2026
More from affaan-m/ecc
All 263- Security Review7.6K
- Rust Testing7.4K
- Backend Patterns7.2K
- Frontend Patterns7.1K
- Coding Standards7K
- Market Research6.9K
- Python Patterns6.7K
- Api Design6.6K
- Laravel Security6.6K
- Frontend Slides6.5K
- Codebase Onboarding6.4K
- Frontend Design Direction6.4K
- E2e Testing6.4K
- Liquid Glass Design6.4K
- Tdd Workflow6.4K
- Database Migrations6.4K
- Android Clean Architecture6.4K
- Prompt Optimizer6.3K
- Golang Patterns6.3K
- Postgres Patterns6.3K
- Verification Loop6.3K
- Article Writing6.3K
- Django Patterns6.2K
- Cpp Coding Standards6.2K