How to Dockerize NodeJS application with MongoDB

preview_player
Показать описание
How to Dockerize NodeJS application with MongoDB with using Docker Compose.

Github Repo for the project:

In this video we're gonna learn how to Dockerize our NodeJS application connected to a MongoDB database. So, we'll be creating two containers for this scenario. One container is for the NodeJS application and the other container is for MongoDB database service. And finally you can get all the services up and running using just one command which is "docker compose up"

0:00 Intro
0:52 Demo project overview
4:15 Installing Docker
7:04 Create Dockerfile
10:40 Implement VueJS Event Bus in a project
23:33 Running docker compose up
27:58 Outro

Hit Subscribe and smash the Like button.

Become a Patreon and support me!

Рекомендации по теме
Комментарии
Автор

Great work... We didn't see your tutorials from long time.... What if database is sql server or mysq.... I think we need series tutorials on docker

haiderjaafer
Автор

`docker-compose up` didn't work for me, so I tried `docker-compose up --build` and that resolved the issue.

Gopal-tg
Автор

Can I export the data of mongodb, as I want to see it in my local system
?

sudhansusingh
Автор

Im facing error in
Post method that path title description and price is required even if i have passed it through a body

tanvisolanke
Автор

Can you pls make video on dockerize nodejs with postgresql/sql? Thank you.

digenmore
Автор

Environment variables arent set correctly in the docker compose file. It should be in the format:

KEY=value

bikesbeersbeats
Автор

you did not expose 27017 port for MongoDB. how this can run without that??

darshanpatil
Автор

Thank you a lot, but can i somehow see database that i created as a container?

nikolanikolic
Автор

Why volume is used? What if volumes is not used?

sagar
Автор

I spent a lot of time for this. It's doesn't work without mongo:6.0-focal

cgpqkht
Автор

Why everyone using docker compose instead of normal

sureshs