MongoDB

Get started with MongoDB

using Docker and Docker Compose.

Image for post
Image for post
Photo by Usukhbayar Gankhuyag on Unsplash

Pull the latest mongodb docker image from dockerhub

init-mongo.js

docker-compose.yml

Up from the current directory

Working with MongoDB via DataGrip

Create a new collection

Get collection info

Hope it helps.

~~ Happy coding~~

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store