Nginx Reverse Proxy custom port

Is there anyway to add nginx reverse proxy listen port like 127.0.0.1:10000
to communicate with other program

Thanks so much

You can read document docker
https://docs.docker.com/engine/reference/commandline/dockerd/
https://forums.docker.com/t/how-to-change-port-of-an-docker-image/48573

Can you please give the code? I am having trouble with this