-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
115 lines (108 loc) · 2.95 KB
/
docker-compose.yaml
File metadata and controls
115 lines (108 loc) · 2.95 KB
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
version: '3'
services:
jaeger-all-in-one:
image: jaegertracing/all-in-one:latest
restart: always
ports:
- "16686:16686"
- "14268"
- "14250"
zipkin-all-in-one:
image: openzipkin/zipkin:latest
restart: always
ports:
- "9411:9411"
prometheus:
container_name: prometheus
image: prom/prometheus:latest
restart: always
volumes:
- ./.docker/prometheus.yaml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
otel-collector:
image: otel/opentelemetry-collector:0.103.0
restart: always
command: ["--config=/etc/otel-collector-config.yaml"]
volumes:
- ./.docker/otel-collector-config.yaml:/etc/otel-collector-config.yaml
ports:
- "1888:1888" # pprof extension
- "8888:8888" # Prometheus metrics exposed by the collector
- "8889:8889" # Prometheus exporter metrics
- "13133:13133" # health_check extension
- "4317:4317" # OTLP gRPC receiver
- "55679:55679" # zpages extension
grafana:
container_name: grafana
image: grafana/grafana:latest
restart: always
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
ports:
- 3000:3000
goapp:
container_name: goapp
build:
context: .
environment:
- TITLE=Microservice Demo
- CONTENT=This is a demo of a microservice
- BACKGROUND_COLOR=green
- RESPONSE_TIME=1000
- EXTERNAL_CALL_URL=http://goapp2:8181
- EXTERNAL_CALL_METHOD=GET
- REQUEST_NAME_OTEL=microservice-demo-request
- OTEL_SERVICE_NAME=microservice-demo
- OTEL_EXPORTER_OTLP_ENDPOINT=otel-collector:4317
- HTTP_PORT=:8080
ports:
- "8080:8080"
depends_on:
- jaeger-all-in-one
- zipkin-all-in-one
- prometheus
- otel-collector
goapp2:
container_name: goapp2
build:
context: .
environment:
- TITLE=Microservice Demo 2
- CONTENT=This is a demo of a microservice
- BACKGROUND_COLOR=blue
- EXTERNAL_CALL_URL=http://goapp3:8282
- EXTERNAL_CALL_METHOD=GET
- RESPONSE_TIME=2000
- REQUEST_NAME_OTEL=microservice-demo2-request
- OTEL_SERVICE_NAME=microservice-demo2
- OTEL_EXPORTER_OTLP_ENDPOINT=otel-collector:4317
- HTTP_PORT=:8181
ports:
- "8181:8181"
depends_on:
- jaeger-all-in-one
- zipkin-all-in-one
- prometheus
- otel-collector
goapp3:
container_name: goapp3
build:
context: .
environment:
- TITLE=Microservice Demo 3
- CONTENT=This is a demo of a microservice
- BACKGROUND_COLOR=green
- RESPONSE_TIME=2000
- REQUEST_NAME_OTEL=microservice-demo3-request
- OTEL_SERVICE_NAME=microservice-demo3
- OTEL_EXPORTER_OTLP_ENDPOINT=otel-collector:4317
- HTTP_PORT=:8282
ports:
- "8282:8282"
depends_on:
- jaeger-all-in-one
- zipkin-all-in-one
- prometheus
- otel-collector