MongoDB cluster setup

How can i setup the mongo db cluster in cloud

I have deployed 3 separate instances in oracle cloud and created the docker containers with the replica set. I have initiated the cluster and in rs.status() , i can able to see the primary and 2 secondary instances. In R53 i have created the records with TXT and SRV. While im connecting in mongo compass its getting error.

Server selection timed out after 30000 ms

can anyone help to sort this out.

Your connection string?