Last active
May 23, 2019 10:16
-
-
Save eckelon/30a7fdb5e67b9a00274aa1f10f217c38 to your computer and use it in GitHub Desktop.
Simple command to start mongo in local machine with data persistence
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 stop mongo-local | |
docker run --name mongo-local --rm -v $(pwd)/data:/data/db -p 27017:27017 -d mongo:4.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment