How to Run MongoDB in Docker

preview_player
Показать описание
Learn how to run MongoDB in a Docker Container. This is a great way to run and test applications against a local database.
I show how to run the container using the "docker run" command using a volume to persist data. I also show how to connect, modify, and view the database contents in VS Code using the MongoDB for VS Code extension. Then I show how to run the container using Docker Compose to make startup quicker and easier.

#docker #mongodb #programming

Gist for docker compose file and docker run command:

Mongo Docker docs:

MongDB for VS Code Extension:

Docker Volumes docs:

Docker Compose docs:

Follow me on social media!

Check out my blog!
Рекомендации по теме
Комментарии
Автор

Dude you make it practical and easy to understand basic concepts for running mongoDB in docker. Enjoyed the video

emericpetitgenet
Автор

Never learnt docker in a better way! Found a gold mine

UtkarshKoppikar
Автор

Quick, thorough, and very helpful! Thanks for the video!

MrSadPanda
Автор

Thank you. Clear, concise and exactly the information I was looking for.

mikegreiling
Автор

Hey, man! Thank you for your comprehensive guide! This helped me A LOT!

Andy-crc
Автор

You have such an easy way of explaning without complexity being added over it.

Best wishes, I wanted to sub you but I guess, that you stopped posting videos.

All the greetings from India.

abc_cba
Автор

really nice, straight forward with the important details explained.

SimanAndGarfunkel
Автор

Cut to chase, loved your video, thank you very much!

yadnyesh
Автор

In newer docker versions you can just call it 'compose.yaml" and you also don't need to add "version".

renealbrechtsen
Автор

Thanks so much for this video, very clear and helpful. Do you know why a second volume is created which has a name that looks like a long id of some kind?

edward
Автор

Awesome video. couple of q's. when u make a named volume, where is it located in case i wanted to back it up (guessing it may change between mac and windows). how much memory does your mac have. on windows, w/ wsl i mac out my 16gb, even w/ restricting resources

paulh
Автор

PS D:\mongoDB> docker compose up
no configuration file provided: not found got this error

fatimarani
Автор

This is a fantastic tutorial. Can you show how we would deploy this docker compose image to gcloud please. I'm stuck on how to get this live. 🙏

AmitKapadiaUK
Автор

for some reason i cant seem to connect to the server, the container is running but i cant connect, i have tried every thing

RomiLandau
Автор

How do I run TWO or more Micro-services (Spring boot + MongoDB) in a docker compose container ? I can not get my head around it, do I need two separate instance of MongoDB on two different ports?

zed
welcome to shbcf.ru