Docker Composition
About this result
Spin up your entire dev environment with one command. Get a docker-compose that just works — no more 'it works on my machine.'
ChatGPT Prompt
Act as a DevOps Engineer. Create a docker-compose.yml file for a full stack web app.
Stack:
- Frontend: React (running on Node).
- Backend: Node.js (Express).
- Database: MongoDB.
Requirements:
- Set up a shared network.
- Persist MongoDB data using a volume.
- Expose Frontend on port 3000, Backend on 5000.
- Include 'depends_on' to ensure DB starts before Backend.
Output:
- The YAML file code.
#devops#docker#infrastructure
Was this prompt helpful?
3
people found this useful
E
eva_content
Shared Dec 18, 2025
Explore More Prompts
Have a great prompt to share?
Submit Your Prompt