Unable to connect using replicas uri (docker setup)

It’s a little late but I’ve found a way to get it working, and written on my blogpost here at Setting up MongoDB with replicas for local development.

Hope it helps!