-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (53 loc) · 1.38 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
version: '3'
services:
author:
image: grpc-golab-19
build:
context: .
command: /usr/bin/author
environment:
AUTHOR_ADDRESS: :4040
AUTHOR_TRACERREPORTERURL: http://zipkin:9411/api/v2/spans
AUTHOR_TRACERSERVICENAME: author
AUTHOR_TRACERSERVICETARGET: author:4040
AUTHOR_METRICSTARGET: :9999
book:
image: grpc-golab-19
command: /usr/bin/book
environment:
BOOK_ADDRESS: :4041
BOOK_TRACERREPORTERURL: http://zipkin:9411/api/v2/spans
BOOK_TRACERSERVICENAME: book
BOOK_TRACERSERVICETARGET: book:4041
BOOK_METRICSTARGET: :9999
compose:
image: grpc-golab-19
command: /usr/bin/compose
environment:
COMPOSE_ADDRESS: :4042
COMPOSE_AUTHORTARGET: author:4040
COMPOSE_BOOKTARGET: book:4041
COMPOSE_TRACERREPORTERURL: http://zipkin:9411/api/v2/spans
COMPOSE_TRACERSERVICENAME: compose
COMPOSE_TRACERSERVICETARGET: compose:4042
COMPOSE_METRICSTARGET: :9999
ports:
- 4042:4042
api:
image: grpc-golab-19
command: /usr/bin/api
environment:
API_ADDRESS: :8080
API_COMPOSETARGET: compose:4042
ports:
- 8080:8080
prometheus:
image: prom/prometheus:v2.13.0
ports:
- 9090:9090
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
zipkin:
image: openzipkin/zipkin:2.17.2
ports:
- 9411:9411