Docker Compose in 6 minutes! Mongo, Express, React, Node (MERN) Application Tutorial

1 Video View·Sep 2, 2026

If you are using Docker and your application consists of multiple services, you need to be using docker-compose!

In this video, I walk through a full example of how to configure docker-compose for a MERN (Mongo, Express, React, and Node.js) application explaining each configuration option along the way.

The application shown is based on this post: / how-to-create-your-first-mern-mongodb-expr...

Full code can be found here:
https://github.com/sidpalas/devops-di...

Cheers!

---
Join the Community:
💬 Discord: / discord
💻 GitHub: https://github.com/sidpalas/devops-di...
🐥 Twitter: / sidpalas
👨‍💼 LinkedIn: / sid-palas
🌐 Website: https://devopsdirective.com

---

Timestamps:
0:00 - Intro
0:40 - Why do we need Docker Compose?
1:42 - MERN sample app
2:17 - Building react-app and api-server Docker images
2:33 - docker-compose.yml walkthrough
3:38 - Network discoverability
4:09 - Non-default network
4:34 - Data volume
4:50 - App demo