Create a complete Docker Compose setup for local development with multiple services
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
Replace these placeholders with your own content before using the prompt.
[{STACK][{DATABASE][{CACHE][{QUEUE][{ADDITIONAL_SERVICES]