Sameer Siruguri

My Blog

Running Mongo here and there

The “here” in this case is my local machine, an OSX El Capitan. Running it here, required a:


brew install mongo

mongod --dbpath /usr/local/data/mongodb/ --fork --logpath /var/log/mongodb/mongodb.log

And “there” is an Ubuntu Xenial VPS, where I have docker running.

The docker config I have for Mongo is part of my docker-compose file:


mongodb:

image: mongo:latest

volumes:

-  ./rundata/mongodb:/data/db

 

 

Single Post Navigation

Leave a Reply

Your email address will not be published. Required fields are marked *