I’m trying to create a mongodb replica set in docker / docker-compose.
In all the tutorials I’ve found online, the replica set is created in a basic fashion in docker-compose and then an administrator manually initializes the replica set in a mongo shell session.
I’m trying to do something a little better. On startup, the container downloads the latest back from S3, and then initializes or joins a replica set, automatically finding the other containers in the network, according to pattern of numbered hostnames, eg mongo-1, mongo-2, … mongo-9.
I’ve created a starter project here, https://github.com/bboyle1234/MongoSet, and I’m looking for someone who can help complete it. Pay is offered. You will need to be experienced in the following: docker, docker-compose, mongodb, mongodb replication, shell scripting, and s3.