How to Run MongoDB in Docker

Published: 09 October 2023
on channel: ScriptBytes
19,485
475

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:
https://gist.github.com/ScriptBytes/2...

Mongo Docker docs:
https://hub.docker.com/_/mongo

MongDB for VS Code Extension:
https://marketplace.visualstudio.com/...

Docker Volumes docs:
https://docs.docker.com/storage/volumes/

Docker Compose docs:
https://docs.docker.com/compose/

Follow me on social media!
Twitter:   / scriptbytesio  
Instagram:   / scriptbytes  
Threads: https://www.threads.net/@scriptbytes

Check out my blog!
https://scriptbytes.io/


Watch video How to Run MongoDB in Docker online without registration, duration hours minute second in high quality. This video was added by user ScriptBytes 09 October 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 19,485 once and liked it 475 people.