Back to prompt library
Text · General-purpose LLMOpen-Source Project Docker Compose One-Click Deployment Template GeneratorPW
CreatorPrompt2 Editorial TeamCurated by PromptWhisper
TextGeneral-purpose LLMDevelopment & Engineering

Open-Source Project Docker Compose One-Click Deployment Template Generator

Automatically generate production-grade Docker Compose deployment files based on the open-source project's tech stack and dependencies, including environment variables, persistence, and health checks.

11Views
Full promptReplace variables in braces, then use it directly

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

4/18/2026

How to use this prompt

  1. 1Copy the complete prompt above.
  2. 2Replace the topic, subject, or style variables.
  3. 3Save effective changes to build your own version.