Learn how to connect a Node server to a MongoDB database using Docker and Docker Compose. We will also learn about creation scripts, how to handle node_modules with Docker, and more.
📚 Docker Compose Crash Course 📚
https://courses.wittcode.com
💻 My Software 💻
My Chrome Extension WittCepter - https://chromewebstore.google.com/det...
👩💻 Download Code 👨💻
https://blog.wittcode.com
⌛ Timestamps ⌛
0:00 - Introduction
0:08 - Project Demonstration
0:44 - Environment Variable Setup
2:10 - Project Initialization and npm Scripts
3:06 - Connecting to Mongo with Node
5:42 - Creating Node Dockerfile
6:28 - Creating Mongo Dockerfile
8:29 - Creating Docker Volumes with Docker Compose
10:09 - Creating Node Service with Docker Compose
11:53 - Creating Mongo Service with Docker Compose
12:55 - Debugging
13:55 - Running the Program
14:46 - Outro