-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (48 loc) · 978 Bytes
/
docker-compose.yml
File metadata and controls
53 lines (48 loc) · 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
services:
redis:
image: "redis:alpine"
ports:
- "6379:6379"
wordcount_server_1:
build: ./server
environment:
- SERVER_PORT=18812
- REDIS_HOST=redis
ports:
- "18812:18812"
depends_on:
- redis
wordcount_server_2:
build: ./server
environment:
- SERVER_PORT=18813
- REDIS_HOST=redis
ports:
- "18813:18813"
depends_on:
- redis
wordcount_server_3:
build: ./server
environment:
- SERVER_PORT=18814
- REDIS_HOST=redis
ports:
- "18814:18814"
depends_on:
- redis
load_balancer:
build: ./load-balancer
environment:
#- LOAD_BALANCING_ALGORITHM=ROUND_ROBIN
- LOAD_BALANCING_ALGORITHM=RANDOM
depends_on:
- wordcount_server_1
- wordcount_server_2
- wordcount_server_3
ports:
- "8765:8765"
client:
build: ./client
command: ["sleep", "infinity"]
depends_on:
- load_balancer