Docker Patterns
Docker and Compose patterns that harden CLI installer tests inside disposable, read-only containers.
- CCM score
- 69 of 100
- skills.sh installs
- 16.8K
- GitHub stars
- 312.6K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers local dev stacks with Compose services, multi-stage Dockerfiles, networking, volumes, and container security hardening
- Includes installer harnesses that copy projects into a writable
tmpfsworkspace before any mutation, with Linux distro containers - Enforces
no-new-privileges,cap_drop: [ALL], read-only roots, pinned image digests, andnetwork_mode: noneby default - Designed for teams testing CLI installers that need native macOS and Windows CI validation, since Linux containers cannot cover those hosts
Install
$ npx -y skills add affaan-m/ecc --skill docker-patterns -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
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
Details
- Repository
- github.com/affaan-m/ecc
- Categories
- DevOps & Cloud, Testing & QA
- First seen
- Jul 14, 2026
More from affaan-m/ecc
All 257- Golang Testing16.5K
- Python Patterns15.6K
- Springboot Patterns15.5K
- Api Design15.3K
- Market Research15.3K
- Postgres Patterns15.2K
- Frontend Slides15.2K
- Django Patterns15.2K
- Tdd Workflow15K
- Rust Testing14.8K
- Prompt Optimizer14.5K
- Java Coding Standards14.5K
- Django Security14.4K
- Python Testing14.3K
- Laravel Security14.3K
- Android Clean Architecture14.3K
- Article Writing14.3K
- Cpp Coding Standards14.3K
- Springboot Security14.2K
- Liquid Glass Design14.2K
- Database Migrations14.1K
- E2e Testing14.1K
- Strategic Compact14K
- Laravel Patterns13.8K
Similar to Docker Patterns
More DevOps & Clouddocker-expertdavila7/claude-code-templates900 installsComprehensive Docker containerization guidance covering multi-stage builds, image size reduction, container hardening, and Compose orchestration.
dockermindrally/skills1.2K installsContainerization guidance covering image builds, hardening, Compose workflows, and CI/CD practices for Docker.
docker-best-practicesjosiahsiegel/claude-plugin-marketplace960 installsOpinionated Docker guidance covering Dockerfiles, base images, runtime hardening, and Compose for local development.
docker-developmentalirezarezvani/claude-skills737 installsOpinionated Docker workflow for optimizing, composing, and hardening Dockerfiles and compose files.
docker-security-guidejosiahsiegel/claude-plugin-marketplace644 installsComprehensive Docker security guide covering image hardening, scanning, secrets, networking, and CIS compliance.
sandbox-guarduseai-pro/openclaw-skills-security476 installsGenerates Docker sandbox profiles that isolate untrusted OpenClaw skills from host filesystem, network, and processes.