-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
190 lines (181 loc) · 4.24 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
version: '3'
services:
dotnetcore:
build: services/dotnetcore
ports:
- "8001:80"
environment:
- JAEGER_AGENT_HOST=jaeger
- JAEGER_AGENT_PORT=6831
- JAEGER_SERVICE_NAME=dotnetcore
- JAEGER_SAMPLER_MANAGER_HOST_PORT=jaeger:5778
links:
- fluentd
logging:
driver: "fluentd"
options:
fluentd-address: localhost:24224
tag: dotnetcore
java:
build: services/java
ports:
- "8002:80"
environment:
- JAEGER_AGENT_HOST=jaeger
- JAEGER_AGENT_PORT=6831
- JAEGER_SERVICE_NAME=java
- JAEGER_SAMPLER_MANAGER_HOST_PORT=jaeger:5778
links:
- fluentd
logging:
driver: "fluentd"
options:
fluentd-address: localhost:24224
tag: java
python:
build: services/python
ports:
- "8003:80"
environment:
- JAEGER_AGENT_HOST=jaeger
- JAEGER_AGENT_PORT=6831
- JAEGER_SERVICE_NAME=python
- JAEGER_SAMPLER_MANAGER_HOST_PORT=jaeger:5778
links:
- fluentd
logging:
driver: "fluentd"
options:
fluentd-address: localhost:24224
tag: python
node:
build: services/node
ports:
- "8004:80"
environment:
- JAEGER_AGENT_HOST=jaeger
- JAEGER_AGENT_PORT=6832
- JAEGER_SERVICE_NAME=node
- JAEGER_SAMPLER_MANAGER_HOST_PORT=jaeger:5778
links:
- fluentd
logging:
driver: "fluentd"
options:
fluentd-address: localhost:24224
tag: node
jaeger:
image: jaegertracing/all-in-one
ports:
- "5775:5775/udp"
- "6831:6831/udp"
- "6832:6832/udp"
- "5778:5778"
- "16686:16686"
- "14268:14268"
- "9411:9411"
links:
- fluentd
logging:
driver: "fluentd"
options:
fluentd-address: localhost:24224
tag: jaeger
prometheus:
image: prom/prometheus:v2.1.0
volumes:
- ./config/prometheus/:/etc/prometheus/
- prometheus_data:/config/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
ports:
- 9090:9090
links:
- alertmanager:alertmanager
restart: always
alertmanager:
image: prom/alertmanager
ports:
- 9093:9093
volumes:
- ./config/alertmanager/:/etc/alertmanager/
restart: always
command:
- '--config.file=/etc/alertmanager/config.yml'
- '--storage.path=/alertmanager'
grafana:
image: grafana/grafana
user: "104"
depends_on:
- prometheus
ports:
- 3000:3000
volumes:
- grafana_data:/var/lib/grafana
- ./config/grafana/provisioning/:/etc/grafana/provisioning/
env_file:
- ./config/grafana/config.monitoring
restart: always
fluentd:
build: ./config/fluentd
volumes:
- ./config/fluentd/:/fluentd/etc/
links:
- "elk"
ports:
- "24224:24224"
- "24224:24224/udp"
restart: always
elk:
image: sebp/elk
ports:
- "5601:5601"
- "9200:9200"
- "5044:5044"
restart: always
cadvisor:
image: google/cadvisor
volumes:
# - /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
ports:
- 8080:8080
restart: always
node-exporter:
image: prom/node-exporter
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
# - /:/rootfs:ro
command:
- '--path.procfs=/host/proc'
- '--path.sysfs=/host/sys'
- --collector.filesystem.ignored-mount-points
- "^/(sys|proc|dev|host|etc|rootfs/var/lib/docker/containers|rootfs/var/lib/docker/overlay2|rootfs/run/docker/netns|rootfs/var/lib/docker/aufs)($$|/)"
ports:
- 9100:9100
restart: always
test:
build: tests
environment:
- K6_OUT=influxdb=http://influxdb:8086/k6
links:
- fluentd
- influxdb
logging:
driver: "fluentd"
options:
fluentd-address: localhost:24224
tag: tests
influxdb:
build: config/influxdb
ports:
- "8086:8086"
volumes:
prometheus_data: {}
grafana_data: {}