LearnDocker
Courses
Contact
Courses
Docker Fundamentals
Managing containers with Docker Compose
Building the load balancer
I have completed this
Video speed:
0.5x
1x
1.25x
1.5x
2x
Building the load balancer
Changes to the examples
Add the PROXY_UPSTREAM env var to the .env file
Remove the web service definition and stop publishing the webapp
Add the service definition for the load balancer
Add the build directive to the load balancer service
Commands
docker-compose build docker-compose build lb docker-compose up
--build
Enhancing the load balancer
← Previous
Scaling a service
Next →
LearnDocker
Courses
Contact Us