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:


image: mongo:latest


-  ./rundata/mongodb:/data/db