Docker Community Forums

Share and learn in the Docker community.

How can i change http://localhost?

Hi.
i need to deploy many microservices at the same time, but all my containers are reachable only on http://localhost.
In this way, i can run only one microservice at time.
How can i change the url for each microservice?

Thanks

Daniele

You can publish them to different ports. Or, if the services allow this, you can create a nginx proxy at the front that routes different URLs to different containers.