docker-patterns
Docker and Docker Compose patterns for local development, container security, networking, volume strategies, and multi-service orchestration.
Skill by Fmarzochi
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/fmarzochi-docker-patterns
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: devops, security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
docker-patterns- Description
- Docker and Docker Compose patterns for local development, container security, networking, volume strategies, and multi-service orchestration. Use when setting up containerized development environments or reviewing Docker configurations.
- License
- Apache-2.0
- Metadata
- origin: EGC
- Instructions
- 368 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Files (1)
- SKILL.md
SKILL.md (first lines)
# 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
```yaml
# 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
db:
image: postgres:16-alpine
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: app_dev
volumes:
- pgdata:/var/lib/postgresql/data
- ./scripts/init-db.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 3s
retries: 5
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redisdata:/data
mailpit: # Local email testing
image: axllent/mailpit
ports:
- "8025:8025" # Web UI
- "1025:1025" # SMTP
volumes:
pgdata:
redisdata:
```
### Development vs Production Dockerfile
```dockerfile
# Stage: dependencies
FROM node:22-alpine AS deps
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
# Stage: dev (hot reload, debug tools)
FROM node:22-alpine AS dev
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
EXPOSE 3000
CMD ["npm", "run", "dev"]
# Stage: build
FROM node:22-alpine AS build
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN npm run build && npm prune --production
# Stage: production (minimal image)
FROM node:22-alpine AS production
WORKDIR /app
RUN addgroup -g 1001 -S appgroup && adduser -S appuser -u 1001
USER appuser
COPY --from=build --chown=appuser:appgroup /app/dist ./dist
COPY --from=build --chown=appuser:appgroup /app/node_modules ./node_modules
COPY --from=build --chown=appuser:appgroup /app/package.json ./
ENV NODE_ENV=production
EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=3s CMD wget -qO- http://localhost:3000/health || exit 1
CMD ["node", "dist/server.js"]
```
### Override Files
```yaml
# docker-compose.override.yml (auto-loaded, dev-only settings)
services:
app:
environment:From Fmarzochi/EGC, Apache-2.0.
More from Fmarzochi/EGC
- 0.668score
dmux-workflows
Fmarzochi
Multi-agent orchestration using dmux (tmux pane manager for AI agents).
SkillAFreshness: A★ 67Claude Code +9 - 0.668score
product-capability
Fmarzochi
Translate PRD intent, roadmap asks, or product discussions into an implementation-ready capability plan that exposes constraints, invariants, interfaces, and…
SkillAFreshness: A★ 67Claude Code +9 - 0.662score
egc
Fmarzochi
Development conventions and patterns for EGC - Extended Global Context.
SkillAFreshness: A★ 67Claude Code +9 - 0.662score
eval-harness
Fmarzochi
Formal evaluation framework for AI coding sessions implementing eval-driven development (EDD) principles
SkillAFreshness: A★ 67Claude Code +9 - 0.659score
verification-loop
Fmarzochi
A comprehensive verification system for AI coding sessions.
SkillAFreshness: A★ 67Claude Code +9 - 0.628score
agent-sort
Fmarzochi
Build an evidence-backed EGC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using…
SkillBFreshness: B★ 67Claude Code +9 - 0.603score
article-writing
Fmarzochi
Write articles, guides, blog posts, tutorials, newsletter issues, and other long-form content in a distinctive voice derived from supplied examples or brand…
SkillBFreshness: B★ 67Claude Code +9 - 0.591score
backend-patterns
Fmarzochi
Backend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes.
SkillBFreshness: B★ 67Claude Code +9 - 0.343score
mcp-server-patterns
Fmarzochi
No description from the publisher yet.
SkillBFreshness: B★ 67Claude Code +9 - 0.343score
nextjs-turbopack
Fmarzochi
No description from the publisher yet.
SkillBFreshness: B★ 67Claude Code +9
Signals
- Stars
- 67
- Forks
- 49
- Open issues
- 0
- Last commit (this folder)
- May 16, 2026 (5 months ago)
- Last release
- Sep 16, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/Fmarzochi/EGC
- Website
- fmarzochi.github.io/EGCSite/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from Fmarzochi
- 0.668score
dmux-workflows
Fmarzochi
Multi-agent orchestration using dmux (tmux pane manager for AI agents).
SkillAFreshness: A★ 67Claude Code +9 - 0.668score
product-capability
Fmarzochi
Translate PRD intent, roadmap asks, or product discussions into an implementation-ready capability plan that exposes constraints, invariants, interfaces, and…
SkillAFreshness: A★ 67Claude Code +9 - 0.662score
egc
Fmarzochi
Development conventions and patterns for EGC - Extended Global Context.
SkillAFreshness: A★ 67Claude Code +9 - 0.662score
eval-harness
Fmarzochi
Formal evaluation framework for AI coding sessions implementing eval-driven development (EDD) principles
SkillAFreshness: A★ 67Claude Code +9 - 0.659score
verification-loop
Fmarzochi
A comprehensive verification system for AI coding sessions.
SkillAFreshness: A★ 67Claude Code +9 - 0.628score
agent-sort
Fmarzochi
Build an evidence-backed EGC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using…
SkillBFreshness: B★ 67Claude Code +9
Cite this page
docker-patterns skill. Agent Mart. https://agentmart.dev/skills/fmarzochi-docker-patterns (last updated 2026-10-24)