Docker Configuration Generator

Generate Dockerfile and docker-compose configurations

intermediate
codingdockerdevopsdeployment

Prompt Template

Create Docker configuration for: {application}

Stack: {stack}
Environment: {environment}

Provide:
1. Dockerfile with multi-stage build
2. docker-compose.yml for local development
3. .dockerignore
4. Environment variable management
5. Health check configuration
6. Production vs development differences

Variables

{application}

Example: Node.js REST API with PostgreSQL

{stack}

Example: Node 20, Express, PostgreSQL 16, Redis

{environment}

Example: Development + Production

Example Output

```dockerfile
# Build stage
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
...
```

Tips

  • Specify production security requirements
  • Include health check endpoints

More Prompts