Skip to content

Instantly share code, notes, and snippets.

@sebandgo
Created April 13, 2021 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebandgo/a8d86286b210cd39c6160794e45cd854 to your computer and use it in GitHub Desktop.
Save sebandgo/a8d86286b210cd39c6160794e45cd854 to your computer and use it in GitHub Desktop.
Run MongoDB On Docker Locally
docker run -d \
--rm \
--name mongodb44 \
--hostname mongodb \
--memory="2g" \
--memory-reservation="512m" \
--cpus="1.0" \
-v /local/storage/path/mongodata:/data/db \
-p 27017:27017 \
mongo:4.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment