Agent skill
docker-compose
Provides comprehensive guidance for Docker Compose including multi-container applications, service definition, networking, and volumes. Use when the user asks about Docker Compose, needs to orchestrate multiple containers, define docker-compose services, or manage multi-container applications.
Install this agent skill to your Project
npx add-skill https://github.com/partme-ai/full-stack-skills/tree/main/skills/docker-skills/docker-compose
SKILL.md
When to use this skill
Use this skill whenever the user wants to:
- 用 docker-compose 定义多服务栈(services、networks、volumes)
- 本地或单机运行多容器(app、DB、缓存、队列)
- 管理环境变量、依赖顺序与健康检查
How to use this skill
- 配置:
docker-compose.yml定义 services、image/build、ports、volumes、environment、depends_on;用profiles做可选服务。 - CLI:
docker compose up -d、down、logs -f、ps;override 用-f或docker-compose.override.yml。 - 环境:
.env或 env_file 注入变量;secrets 用 Docker secrets 或外部方案。
Example: docker-compose.yml with health check
services:
app:
build: .
ports:
- "3000:3000"
depends_on:
db:
condition: service_healthy
environment:
DATABASE_URL: postgres://user:pass@db:5432/mydb
db:
image: postgres:16
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U user"]
interval: 10s
timeout: 5s
retries: 3
volumes:
pgdata:
Best Practices
- 服务间用内部网络;仅暴露必要端口。
- 数据卷命名或使用命名卷;避免依赖默认匿名卷路径。
- 生产多节点用 Kubernetes 或 Swarm;compose 适合开发与单机部署。
Keywords
docker compose, docker-compose.yml, multi-container, 多容器, 编排
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
ocrmypdf-batch
OCRmyPDF batch processing skill — process multiple PDFs, Docker automation, shell scripting, and CI/CD integration. Use when the user needs to OCR many PDFs, set up automated OCR pipelines, or integrate OCR into workflows.
ocrmypdf-optimize
OCRmyPDF optimization skill — compress PDFs, configure PDF/A output, JBIG2 encoding, and lossless optimization. Use when the user needs to reduce PDF file size, create archival PDF/A files, or optimize OCR output.
ocrmypdf-image
OCRmyPDF image processing skill — deskew, rotate, clean, despeckle, remove border from scanned documents. Use when the user needs to improve scanned PDF quality, fix skewed pages, remove noise, or clean up scanned documents before OCR.
ocrmypdf-api
OCRmyPDF Python API and plugin skill — use OCRmyPDF programmatically from Python, integrate with applications, and extend with plugins (EasyOCR, PaddleOCR, AppleOCR). Use when the user needs to call OCRmyPDF from Python code, build OCR pipelines, or use alternative OCR engines.
ocrmypdf
OCRmyPDF core skill — add searchable OCR text layer to scanned PDFs, convert images to searchable PDFs, support 100+ languages via Tesseract. Use when the user needs to OCR a PDF, make a scanned PDF searchable, or extract text from scanned documents.
svelte
Guides Svelte and SvelteKit development including reactive components, stores, transitions, lifecycle hooks, SSR, file-based routing, and deployment. Use when the user needs to build Svelte components, create SvelteKit applications, implement reactivity patterns, or configure Svelte with Vite.
Didn't find tool you were looking for?