Created
April 13, 2021 18:35
-
-
Save sebandgo/a8d86286b210cd39c6160794e45cd854 to your computer and use it in GitHub Desktop.
Run MongoDB On Docker Locally
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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