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.

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

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

#docker #mongodb #express #react #node

Docker Compose! Mongo, Express, React, Node (MERN) Application Tutorial
44.15 GEEK