Map http requests from nginx to docker

I have different versions of my web application running in Docker containers. And nginx is running on my host machine.
Is it possible to access the desired deployed version of my web application with the help of sub-domain such as v1.myapp.io, v2.myapp.io without reconfiguring and restarting the nginx?
I also want to access future versions in the same way?

Could anyone tell me if there is any way to achieve it?

Please consider me a newbie to Docker/nginx world.

Thanks in Advance.

Source: StackOverflow