Install any skill in seconds. Free to start, no credit card required.
Get Started Free →xu-xiang/docker-patterns
用于本地开发、容器安全、网络、卷策略和多服务编排的 Docker 与 Docker Compose 模式。
Passed 20 of 22 test cases with the skill, and 17 of 22 without it.
and 2 more in the full report
4 fixed16 passed either way1 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 4 test cases the skill fixed. Same model, same prompt, with and without the skill.
I'm setting up a local development environment for a Node.js web application that relies on PostgreSQL and Redis. Can you help me write the Dockerfile and docker-compose.yml? I need hot reloading working on my local machine while making sure local dependencies don't get overwritten, and the database should be properly initialized and health-checked before the application starts. Please provide the file structures and configuration blocks for both.
| Checked | Without skill | With skill |
|---|---|---|
| Configures the application service build target to target: dev in docker-compose.yml. | Missed | Passed |
| Defines an anonymous volume for /app/node_modules in docker-compose.yml to protect container dependencies. | Missed | Passed |
| Configures depends_on for the database service using condition: service_healthy. | Passed | Passed |
The instructions your model reads when the skill loads.
适用于容器化开发的 Docker 和 Docker Compose 最佳实践。
# 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:
test cases passed, vs 17 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.