Content Preview
---
name: docker-patterns
description: 用于本地开发的Docker和Docker Compose模式,包括容器安全、网络、卷策略和多服务编排。
origin: ECC
---
# Docker 模式
适用于容器化开发的 Docker 和 Docker Compose 最佳实践。
## 何时启用
* 为本地开发设置 Docker Compose
* 设计多容器架构
* 排查容器网络或卷问题
* 审查 Dockerfile 的安全性和大小
* 从本地开发迁移到容器化工作流
## 用于本地开发的 Docker Compose
### 标准 Web 应用栈
```yaml
# docker-compose.yml
services:
app:
build:
context: .
target: dev # Use dev stage of multi-stage Dockerfile
ports:
- "3000:3000"
volumesHow to Use
Recommended: Install to project (local)
mkdir -p .claude/skills
curl -o .claude/skills/docker-patterns.md \
https://raw.githubusercontent.com/affaan-m/everything-claude-code/main/docs/zh-CN/skills/docker-patterns/SKILL.mdSkill is scoped to this project only. Add .claude/skills/ to your .gitignoreif you don't want to commit it.
Alternative: Clone full repo
git clone https://github.com/affaan-m/everything-claude-codeThen reference at docs/zh-CN/skills/docker-patterns/SKILL.md
Related Skills
Generating Docker Compose Files
This skill enables Claude to generate Docker Compose configurations for multi-container applications. It leverages best practices for production-ready deployments, including defining services, networks, volumes, health checks, and resource limits. Claude should use this skill when the user requests
skill-adaptergenerating docker compose files
by jeremylongshore · plugins-plus-skills
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.
doc-coauthoringdoccoauthoring
by Anthropic · anthropic-official-skills
deployment-patterns
部署工作流、CI/CD流水线模式、Docker容器化、健康检查、回滚策略以及Web应用程序的生产就绪检查清单。
deployment-patternsdeploymentpatternsci/cd
by affaan-m · everything-claude-code
devops-deploy
DevOps e deploy de aplicacoes — Docker, CI/CD com GitHub Actions, AWS Lambda, SAM, Terraform, infraestrutura como codigo e monitoramento.
infrastructuredevopsdockerci-cd
by sickn33 (Antigravity) · antigravity-awesome-skills