-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
103 lines (96 loc) · 2.36 KB
/
docker-compose.yaml
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
version: "3.2"
services:
jaeger:
image: "jaegertracing/all-in-one:latest"
ports:
- "16686:16686"
rabbitmq:
image: oteljava/rabbitmq:3-management-alpine
build:
context: "./infrastructure/rabbitmq"
ports:
- 5672:5672
- 15672:15672
volumes:
- ~/rabbitmq/data/:/var/lib/rabbitmq/
- ~/rabbitmq/log/:/var/log/rabbitmq
redis:
image: redis:latest
prometheus:
image: prom/prometheus
volumes:
- ./infrastructure/prometheus:/etc/prometheus/
command:
- '--config.file=/etc/prometheus/prometheus.yml'
ports:
- 9090:9090
worker1:
image: oteljava/worker1:v2
container_name: worker1
build:
context: "./worker1"
environment:
- AGENTTYPE
- OTEL_LOG_LEVEL
- OTEL_JAVAAGENT_DEBUG
- OTEL_AZ_MONITOR_CONNECTION
- OTEL_TRACES_EXPORTER
- OTEL_METRICS_EXPORTER
- OTEL_EXPORTER_PROMETHEUS_PORT=9464
- OTEL_EXPORTER_PROMETHEUS_HOST=worker1
- OTEL_EXPORTER_JAEGER_ENDPOINT
- OTEL_RESOURCE_ATTRIBUTES=service.name=worker1
- service.name=worker1
depends_on:
- redis
- rabbitmq
- jaeger
ports:
- 9464:9464
worker2:
image: oteljava/worker2:v2
container_name: worker2
build:
context: "./worker2"
environment:
- AGENTTYPE
- OTEL_LOG_LEVEL
- OTEL_JAVAAGENT_DEBUG
- OTEL_AZ_MONITOR_CONNECTION
- OTEL_TRACES_EXPORTER
- OTEL_METRICS_EXPORTER
- OTEL_EXPORTER_PROMETHEUS_PORT=9465
- OTEL_EXPORTER_PROMETHEUS_HOST=worker2
- OTEL_EXPORTER_JAEGER_ENDPOINT
- OTEL_RESOURCE_ATTRIBUTES=service.name=worker2
- service.name=worker2
depends_on:
- redis
- rabbitmq
- jaeger
ports:
- 9465:9465
client:
image: oteljava/client:v2
container_name: client
build:
context: "./client"
environment:
- AGENTTYPE
- OTEL_LOG_LEVEL
- OTEL_JAVAAGENT_DEBUG
- OTEL_AZ_MONITOR_CONNECTION
- OTEL_TRACES_EXPORTER
- OTEL_METRICS_EXPORTER
- OTEL_EXPORTER_PROMETHEUS_PORT=9466
- OTEL_EXPORTER_PROMETHEUS_HOST=client
- OTEL_EXPORTER_JAEGER_ENDPOINT
- OTEL_RESOURCE_ATTRIBUTES=service.name=otelclient
- service.name=otelclient
depends_on:
- rabbitmq
- jaeger
- worker1
- worker2
ports:
- 9466:9466