Docker-compose replicas with nginx reverse proxy

Replicas follow to “cattle” philosophy, not the “pets” philosopy. Thus said, I am unsure what “URL for the ex2 instance” would mean?

Furthermore your vote service depends_on the redis service to become healty. I assume you removed it from the compose file you pasted, as otherwise it would not even make sense that any of the vote replicas is even reachable by the RP.