Skip to content

Instantly share code, notes, and snippets.

@irfanbaigse
Last active August 10, 2023 22:01
Show Gist options
  • Save irfanbaigse/c2ab6f68330bc4490d12965c3f3df390 to your computer and use it in GitHub Desktop.
Save irfanbaigse/c2ab6f68330bc4490d12965c3f3df390 to your computer and use it in GitHub Desktop.
Small mongodb image for local use
#https://github.com/Ortanon/mongo
docker pull karimtemple/mongo
mkdir db && sudo chmod 777 db
docker run --platform linux/amd64 --name mongodb --rm -d -p 27017:27017 --user 202:202 -v $(pwd)/db:/data/db karimtemple/mongo
@irfanbaigse
Copy link
Author

** No auth

docker run --platform linux/amd64 --name mongodb --rm -d -p 27017:27017 --user 202:202 -v $(pwd)/db:/data/db karimtemple/mongo mongod --bind_ip_all --noauth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment