I have a Node.js app together with a MongoDB database running on AWS ECS. The setup I've got currently is formed of 2 ELB's and 2 Instances running each a Docker container with its assigned service (node/mongo):
Elastic Load Balancer -> Dockerized Node -> Elastic Load Balancer -> Dockerized MongoDB
I am running the Official Docker image for MongoDB available here: https://registry.hub.docker.com/_/mongo/
Any pointers as to how would I be able to deploy a replicaSet for MongoDB using Docker and ECS, each replica running on a different instance?