O'Reilly logo

Distributed Computing with Go by V.N. Nikhil Anurag

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Environment variables and API ports

We mentioned that we will specify the port we want each of the containers to run on in docker-compose.yaml. However, we also need to update {concierge,librarian}/main.go so that they can start the servers at ports defined by environment variables. We will also need to update concierge/query.go so that it can access the Librarian instances on URLs and ports as defined by docker-compose.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required