Refer to this presentation:
Lessons from using Docker to improve web developer productivity
Jump forward to 21:09 mark, the solution is to use a fixed domain name (in your case Service-X-Prod). In developer test environment, you'd configure /etc/hosts file so that traffics point to Service-X-Prod, would route to Service-X-Test instead.
I think it's a genuine solution as it achieves two things: Retain integrity of the containers by eliminates the need to reroute traffic due to environment change, and no longer the need for separate configurations for test and prod.