Skip to content

Commit e7eaf28

Browse files
committed
Add the 2nd assignment
[refs #822c1b2c51b6]
1 parent 5bb850c commit e7eaf28

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

compose_example/assignment2.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
## Integrate the load balancer
2+
* Add the required environment variable to the .env file
3+
* Set PROXY_UPSTREAM to `webapp:9292`
4+
* Remove the `web` service definition
5+
* Add a new service definition
6+
* Call it `lb`
7+
* Use your load balancer image
8+
* Or use jfahrer/lb:v2
9+
* Depend on the service `webapp`
10+
* Make sure to assign the PROXY_UPSTREAM environment variable
11+
* Publish port 80
12+
* Stop publishing the `webapp` service
13+
* Start the services using docker-compose
14+
* Use your browser to verify it works
15+
* http://localhost

0 commit comments

Comments
 (0)