Skip to content

Commit b8d9813

Browse files
committed
Integrate the load balancer into the compose file
[refs #6acefea3d1d5]
1 parent 1ac9ebf commit b8d9813

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

developing/webapp/docker-compose.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
version: '3.3'
22

33
services:
4+
lb:
5+
image: jfahrer/lb:latest
6+
environment:
7+
- PROXY_UPSTREAM=app:9494
8+
ports:
9+
- 80:80
10+
411
app:
512
image: jfahrer/webapp-ruby:latest
613
build:
@@ -12,8 +19,6 @@ services:
1219
- POSTGRES_HOST=pg
1320
volumes:
1421
- .:/app
15-
ports:
16-
- 9494:9494
1722

1823
pg:
1924
image: postgres:9.6-alpine

0 commit comments

Comments
 (0)