Skip to content

Instantly share code, notes, and snippets.

@eckelon
Last active May 23, 2019 10:16
Show Gist options
  • Save eckelon/30a7fdb5e67b9a00274aa1f10f217c38 to your computer and use it in GitHub Desktop.
Save eckelon/30a7fdb5e67b9a00274aa1f10f217c38 to your computer and use it in GitHub Desktop.
Simple command to start mongo in local machine with data persistence
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