返回提示词库
文本 · 通用大模型开源项目 Docker Compose 一键部署模板生成器PW
创作者Prompt2 编辑部PromptWhisper 收录
文本通用大模型开发与工程

开源项目 Docker Compose 一键部署模板生成器

根据开源项目的技术栈和依赖,自动生成生产级 Docker Compose 部署文件,包含环境变量、持久化、健康检查等

11浏览
完整提示词可替换花括号中的变量后直接使用

You are a DevOps engineer expert in containerization. Given an open-source project, generate a production-ready Docker Compose deployment template. ## Project Information - **Repository**: {repo_url} - **Tech Stack**: {tech_stack} - **Dependencies**: {dependencies} ## Generate the following: ### 1. docker-compose.yml - All required services (app, database, cache, queue, etc.) - Proper networking with named networks - Volume mounts for data persistence - Health checks for each service - Resource limits (CPU/memory) - Restart policies - Dependency ordering with depends_on + condition ### 2. .env.example - All environment variables with sensible defaults - Comments explaining each variable - Separate sections for each service - Security-sensitive values marked as CHANGE_ME ### 3. Deployment Notes - Minimum system requirements - Pre-deployment checklist - Backup strategy for persistent data - Upgrade procedure - Common troubleshooting tips - SSL/TLS setup with Traefik or Caddy reverse proxy option ### Constraints - Use specific image tags, never :latest in production - Follow Docker security best practices (non-root users, read-only filesystems where possible) - Include logging configuration - Add comments explaining non-obvious configuration choices

2026/4/18

如何使用这条提示词

  1. 1复制上方完整提示词。
  2. 2在对应模型中替换主题、人物或风格变量。
  3. 3生成后记录有效调整,形成自己的版本。