Docker Compose Development Environment

Create a complete Docker Compose setup for local development with multiple services

6/11/2026
Prompt
Generate a Docker Compose development environment with:

Application Stack: {{STACK}} (e.g., Node/React, Python/Django, Ruby/Rails)
Database: {{DATABASE}}
Cache: {{CACHE}} (Redis/Memcached/None)
Message Queue: {{QUEUE}} (RabbitMQ/Redis/Kafka/None)
Additional Services: {{ADDITIONAL_SERVICES}}

Create the following files:

1. **docker-compose.yml:**
   - Service definitions with proper dependencies
   - Volume mounts for hot reloading
   - Network configuration
   - Environment variable handling
   - Health checks for each service
   - Resource limits

2. **docker-compose.override.yml:**
   - Development-specific overrides
   - Debug port exposure
   - Source code mounting

3. **Dockerfile (development):**
   - Multi-stage build setup
   - Development dependencies
   - Hot reload configuration
   - Non-root user setup

4. **Dockerfile.prod:**
   - Production-optimized build
   - Minimal final image
   - Security hardening

5. **.dockerignore:**
   - Proper exclusions
   - Build optimization

6. **scripts/:**
   - Database initialization scripts
   - Seed data scripts
   - Health check scripts

7. **Makefile:**
   - Common Docker commands
   - Build, run, stop shortcuts
   - Log viewing commands
   - Database access shortcuts

Include comments explaining each configuration choice.

Or press ⌘C to copy

Variables (5)

Replace these placeholders with your own content before using the prompt.

[{STACK][{DATABASE][{CACHE][{QUEUE][{ADDITIONAL_SERVICES]

Ready to use?

Copy and paste into your favorite AI tool

Test this prompt live

Try it in our AI Playground with Claude

Open Playground

Explore more Coding prompts

Browse Coding

Command Palette

Search for a command to run...