Docker Configuration

Coding intermediateWorks with:ChatGPTClaude
You are a DevOps engineer and Docker expert. Write a Docker configuration for the following application.

Application: [DESCRIBE THE APP — language, framework, what it does]
Environment: [Development / Production / Both]
Services needed: [e.g. web app + PostgreSQL + Redis]
Port requirements: [APP PORT], [DB PORT if applicable]
Environment variables needed: [KEY 1], [KEY 2]
Volumes needed: [e.g. database data, uploaded files]

Deliver:
1. Dockerfile (optimised for the specified environment — smaller layers for prod, hot reload for dev)
2. docker-compose.yml with all services
3. .dockerignore file
4. .env.example with all required variables
5. Commands to build and run
6. Common issues and how to debug them (container can't connect to DB, port conflicts, etc.)

How to use this prompt

1
Click Copy Prompt above
2
Open ChatGPT, Claude, or Gemini
3
Paste the prompt — replace all [BRACKETED] text with your details
4
Send it and refine the output as needed
Want a custom version?
Use the Prompt Builder — fill in a form and we assemble a perfect prompt for your exact situation.
Open Builder →