[Newbie] Localhost bind to production server

First, I’m a newbie in Docker.

Is that an easy way to bind the localhost to a production web server URL?
I’m building NodeJS with ExpressJS web server

And I’m building an API

Local developement

const redirect = req.query.redirect || 'http://localhost:3000';

Production server

const redirect = req.query.redirect || 'https://mywebserver.com';

Thanks