Unable to connect using replicas uri (docker setup)

Thanks, I’ve tried the hosts method but it didn’t work for me as mentioned in the post