forked from linkerd/linkerd-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
130 lines (111 loc) · 2.44 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
version: '2'
services:
web0:
build: .
command:
- "-addr=:7770"
- "-redis-addr=linkerd-tcp:7474"
web1:
build: .
command:
- "-addr=:7771"
- "-redis-addr=linkerd-tcp:7474"
web2:
build: .
command:
- "-addr=:7772"
- "-redis-addr=linkerd-tcp:7474"
web3:
build: .
command:
- "-addr=:7773"
- "-redis-addr=linkerd-tcp:7474"
web4:
build: .
command:
- "-addr=:7774"
- "-redis-addr=linkerd-tcp:7474"
web5:
build: .
command:
- "-addr=:7775"
- "-redis-addr=linkerd-tcp:7474"
web6:
build: .
command:
- "-addr=:7776"
- "-redis-addr=linkerd-tcp:7474"
web7:
build: .
command:
- "-addr=:7777"
- "-redis-addr=linkerd-tcp:7474"
web8:
build: .
command:
- "-addr=:7778"
- "-redis-addr=linkerd-tcp:7474"
web9:
build: .
command:
- "-addr=:7779"
- "-redis-addr=linkerd-tcp:7474"
linkerd:
image: buoyantio/linkerd:1.4.6
ports:
- 4140:4140 # expose for testing only
- 9990:9990
volumes:
- ./linkerd.yml:/io.buoyant/linkerd/config.yml:ro
command:
- "/io.buoyant/linkerd/config.yml"
namerd:
image: buoyantio/namerd:1.4.6
ports:
- 4180:4180
- 9991:9991
volumes:
- ./namerd.yml:/io.buoyant/namerd/config.yml:ro
- ./disco:/disco
command:
- "/io.buoyant/namerd/config.yml"
linkerd-tcp:
image: linkerd/linkerd-tcp:0.1.1
ports:
- 9992:9992
volumes:
- ./linkerd-tcp.yml:/config.yml:ro
command:
- "/config.yml"
redis1:
image: redis:3.2
redis2:
image: redis:3.2
redisexporter1:
image: oliver006/redis_exporter:v0.10.8
command:
- "-redis.addr=redis://redis1:6379"
redisexporter2:
image: oliver006/redis_exporter:v0.10.8
command:
- "-redis.addr=redis://redis2:6379"
linkerd-viz:
image: buoyantio/linkerd-viz:0.2.0
environment:
- SCRAPE_INTERVAL=5s
ports:
- 3000:3000
- 9191:9191
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus-local.yml:ro
- ./grafana.json:/usr/share/grafana/public/dashboards/home.json:ro
- ./grafana.json:/etc/grafana/provisioning/dashboards/linkerd-tcp-dashboard.json:ro
command:
- "local"
slow_cooker:
image: buoyantio/slow_cooker:1.2.0
environment:
- http_proxy=http://linkerd:4140
entrypoint: /bin/sh
command: >
-c 'sleep 15 && slow_cooker -qps 10 -concurrency 50 -interval 5s http://web/'