Prompt
0 copies · 0 said it worked
Set up a one-command Docker Compose local development environment
Guides the creation of a compose.yaml file with pinned images, healthchecks, secrets handling, and profiles so a teammate can start the full local stack with docker compose up.
People use this for
- docker compose local dev setup
- docker compose one command stack
- how do i run docker compose for local development environment
- write a compose file for teammates to start locally
- docker compose best practices for dev environments
Imported on Nov 29, 2026 from Docker Compose taste . License observed at the source on Nov 29, 2026: CC0.
Are you the author?Claim this profileRequest removal
Prompt
# Docker Compose taste of a developer who wants one-command local environments
- Make `docker compose up` the only command a new teammate needs to start the full local stack. Confidence: 0.90
- Name the file `compose.yaml` and drop the obsolete top-level `version:` key. Confidence: 0.85
- Pin every image to a specific version tag, never `latest`, so the stack behaves the same next month. Confidence: 0.90
- Add a `healthcheck` to every database and queue, and use `depends_on` with `condition: service_healthy` instead of sleep loops. Confidence: 0.90
- Keep secrets and machine-specific values in a gitignored `.env` file, and commit a `.env.example` with safe defaults. Confidence: 0.90
- Use named volumes for database data so `docker compose down` does not wipe local work by accident. Confidence: 0.85
- Bind ports to `127.0.0.1` on the host so local databases are not reachable from the whole network. Confidence: 0.80
- Mount source code only for services you edit live, and use `develop.watch` or a bind mount with clear sync rules. Confidence: 0.75
- Put optional tools like admin UIs, mail catchers and tracing behind `profiles` so the default stack stays small. Confidence: 0.80
- Use `compose.override.yaml` for personal tweaks and keep it out of git. Confidence: 0.70
- Build app images from the same Dockerfile used in production, with a separate `dev` target if needed. Confidence: 0.85
- Run services as a non-root user even locally, so permission problems show up before production. Confidence: 0.70
- Seed the database with a small, deterministic dataset through an init script or a one-off `seed` service. Confidence: 0.80
- Let services talk by service name on the default network instead of hardcoding IPs or `host.docker.internal`. Confidence: 0.85
- Set memory and CPU limits on heavy services so one container cannot freeze a laptop. Confidence: 0.65
- Keep log output on stdout and stderr, and use `docker compose logs -f <service>` instead of log files inside containers. Confidence: 0.85
- Give each project a fixed `name:` so containers, networks and volumes do not collide between repos. Confidence: 0.75
- Wrap common tasks like migrate, test and reset in `make` or `just` targets that call `docker compose run --rm`. Confidence: 0.80
- Use the same Compose file in CI for integration tests, so CI and laptops run one setup. Confidence: 0.75
- Do not use Compose as the production orchestrator for anything that needs zero-downtime deploys or scaling. Confidence: 0.80No result recorded for this import yet. Tried it? File a report so the next person knows how it went.
Tried it
Structured reports from people who ran this prompt. They roll up into the per-model badges above.
No one has filed a report yet. Try the prompt and be the first.
Related prompts
- Webhook Signature Verifier and Replay Guard for debugging HMAC mismatches
Agent skill that debugs webhook signature failures for Stripe, GitHub, Shopify, Slack or custom schemes, explains mismatches from raw bodies, flags replays, duplicates, weak secrets and plain HTTP endpoints.
Coding · @f
- Find fair, rotating meeting times across time zones
Evaluates every candidate slot in a date range in each participant's local time, accounting for DST switches and blocked time, and returns a ranked list plus a rotating series that shares inconvenient hours fairly.
Productivity · @f
- Git repository bloat finder: diagnose large files and suggest safe cleanup
Agent skill that measures a Git repository, scans reachable blobs for large, deleted, versioned, generated and credential-like files, and proposes least-disruptive fixes without rewriting history itself.
Coding · @f
- Claude api: reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming,…
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any fo
Coding · @anthropic
- Write work reports from git and coding-agent sessions
Agent skill that gathers a user's work for a period and folder scope from git, coding-agent sessions and other sources, then drafts, previews and saves a standup, weekly, monthly or changelog report.
Coding · @subashdhamee
License: CC0v1 · published Nov 29, 2026
Comments
No comments yet. If you tried this prompt, say how it went.