-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
77 lines (68 loc) · 1.65 KB
/
docker-compose.yml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: "3.9"
services:
test-server-1:
build:
context: ./
dockerfile: ./server/Dockerfile
environment:
GRPC_VERBOSITY: debug
#GRPC_TRACE:
TCP_USER_TIMEOUT: 250
MAX_CONNECTION_AGE: 1000
networks:
lookaside_static_network:
ipv4_address: "172.20.128.1"
test-server-2:
build:
context: ./
dockerfile: ./server/Dockerfile
environment:
GRPC_VERBOSITY: debug
#GRPC_TRACE: tcp,http
TCP_USER_TIMEOUT: 250
MAX_CONNECTION_AGE: 1000
networks:
lookaside_static_network:
ipv4_address: "172.20.128.2"
test-server-3:
build:
context: ./
dockerfile: ./server/Dockerfile
environment:
GRPC_VERBOSITY: debug
#GRPC_TRACE: tcp,http
TCP_USER_TIMEOUT: 250
MAX_CONNECTION_AGE: 1000
networks:
lookaside_static_network:
ipv4_address: "172.20.128.3"
lookaside-load-balancer:
build: ./lookaside-load-balancer
ports:
- 8880:80
volumes:
- ./lookaside-load-balancer/response.json:/var/sites/webapp/webapp/response.json
- ./lookaside-load-balancer/nginx.conf:/etc/nginx/nginx.conf
networks:
lookaside_static_network:
client:
profiles: ["docker-run-only"]
build:
context: ./
dockerfile: ./client/Dockerfile
environment:
_LLB_TARGET: lookaside-load-balancer:80
volumes:
- ./client:/app/
depends_on:
- test-server-1
- test-server-2
- test-server-3
- lookaside-load-balancer
networks:
lookaside_static_network:
networks:
lookaside_static_network:
ipam:
config:
- subnet: 172.20.0.0/16