Hello there! I recently (.. today) had to setup a replicated MongoDB, dockerized, hosted on VPS‘ on the great site DigitalOcean, and as I only found outdated tutorials online that, more like pushed me along, than walked me through what had to happen, I thought I’d make a more 2015 version; even though we’re leaning towards ’16 (maybe I’ll come back in a couple of months and pretend I’ve updated something).
This tutorial is heavily inspired by Deploy a MongoDB Cluster in 9 steps Using Docker but that one is old and this is much longer and actually works; I did it today, it was unpleasant.
The setup we want is 3 MongoDB’s running in Docker on 3 different VPS’ from DigitalOcean.
Step 1: We’re going to Create 3 droplets with Docker on DigitalOcean.
Step 2: and Start 3 MongoDB’s that know of each other and we can connect to.
Continue reading “Setting up a Replicated MongoDB using Authentication in Docker on DigitalOcean”