코딩 · 개발원문 · prompts.chat
로컬 개발용 Docker Compose 구성
명령어 하나로 안정적인 로컬 개발 환경을 띄울 수 있도록 Docker Compose 작성 규칙을 제공합니다.
원제 · Docker Compose taste
- 추천 툴
- 코딩 에이전트형식 기준 추천
프롬프트 원문
# 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.80
출처 · prompts.chat 공개 프롬프트 모음 · 작성 Fatih Kadir Akın — CC0(저작권 포기)로 공개된 원문을 그대로 싣습니다. 한국어 제목 · 설명은 AI 번역이며, 실행 결과는 아직 없습니다.
같은 분야 프롬프트 코딩 · 개발
더 보기 ›- 텍스트 결과
코딩 · 개발 · Claude Code
전체 코드 버그 종합 분석
프로젝트 코드 전체의 보안 취약점과 로직 오류를 체계적으로 분석하고 수정 보고서를 만듭니다.
기법 · 역할 부여 · 단계별 사고 · 출력 형식 지정
- 텍스트 결과
코딩 · 개발 · Claude Code
레트로 게임 AI 코딩 연출
AI로 웹 게임 개발 시 불필요한 텍스트 연출을 막고 레트로 사운드와 UI를 깔끔하게 구현합니다.
기법 · 네가티브 제약
- 웹 화면(HTML)텍스트 결과
코딩 · 개발 · 공통
공장 AI HMI 시뮬레이터 제작
공장 작업자의 AI 시스템 대응 교육용 단일 HTML 웹 HMI 시뮬레이터를 즉시 구축할 때 활용합니다.
기법 · 역할 부여 · 단계별 지시 · 출력 형식 지정