January 2019
Intermediate to advanced
520 pages
14h 32m
English
The last service we'll configure before we start the whole application is the router microservice. This service depends on the users and content microservices, because router proxies request these microservices:
router: build: ./microservices/router depends_on: - users - content environment: - RUST_LOG=router_microservice=debug - RUST_BACKTRACE=1 - ROUTER_ADDRESS=0.0.0.0:8000 - ROUTER_USERS=http://users:8000 - ROUTER_CONTENT=http://content:8000 ports: - 8000:8000
We also configured logging with the debug level for the router_microservice namespace, turned on backtrace printing, set the socket address to bind this microservice to, and set paths to the users and content microservices with environment variables ...
Read now
Unlock full access