-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
175 lines (160 loc) · 5.02 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
services:
rediscachereader.worker:
image: rediscachereader.worker
build:
context: .
dockerfile: RedisCacheReader.Worker/Dockerfile
environment:
Connections__Redis__ConnectionString: 'redis:6379,abortConnect=false'
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4317
depends_on: [ redis ]
redisstreamreader.worker:
image: redisstreamreader.worker
build:
context: .
dockerfile: RedisStreamReader.Worker/Dockerfile
environment:
Connections__Redis__ConnectionString: 'redis:6379,abortConnect=false'
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4317
depends_on: [ redis ]
apicaller.worker:
image: apicaller.worker
build:
context: .
dockerfile: ApiCaller.Worker/Dockerfile
environment:
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4317
Connections__Api__BaseUrl: http://kafkawriter.api:8080
depends_on: [ kafkawriter.api ]
kafkawriter.api:
image: kafkawriter.api
build:
context: .
dockerfile: KafkaWriter.Api/Dockerfile
environment:
Connections__Kafka__Brokers: kafka:29092
Connections__Redis__ConnectionString: 'redis:6379,abortConnect=false'
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4317
depends_on: [ kafka, redis ]
ports:
- "5052:8080"
kafkareader.worker:
image: kafkareader.worker
build:
context: .
dockerfile: KafkaReader.Worker/Dockerfile
environment:
Connections__Redis__ConnectionString: 'redis:6379,abortConnect=false'
Connections__Kafka__Brokers: kafka:29092
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4317
depends_on: [ kafka ]
kafka:
container_name: kafka
image: confluentinc/cp-kafka:6.1.9
hostname: kafka
ports:
- "29092:29092"
- "9092:9092"
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:29092,PLAINTEXT_HOST://localhost:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
depends_on:
- zookeeper
restart: always
init-kafka:
image: confluentinc/cp-kafka:6.1.9
depends_on:
- kafka
command: >
sh -c "
kafka-topics --bootstrap-server kafka:29092 --list &&
cub kafka-ready -b kafka:29092 1 30 &&
echo -e 'Creating kafka topics' &&
kafka-topics --bootstrap-server kafka:29092 --create --if-not-exists --topic my-topic-name --replication-factor 1 --partitions 1 &&
echo -e 'Successfully created the following topics:' &&
kafka-topics --bootstrap-server kafka:29092 --list
"
zookeeper:
image: confluentinc/cp-zookeeper:6.1.1
hostname: zookeeper
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
restart: always
redis:
container_name: redis
image: redis:7.0
restart: always
ports:
- '6379:6379'
redis-commander:
container_name: redis-commander
hostname: redis-commander
image: rediscommander/redis-commander:latest
restart: always
environment:
- REDIS_HOSTS=redis
ports:
- "8081:8081"
kafka-ui:
container_name: kafka-ui
image: provectuslabs/kafka-ui:latest
ports:
- 8080:8080
depends_on:
- kafka
environment:
DYNAMIC_CONFIG_ENABLED: 'true'
KAFKA_CLUSTERS_0_NAME: local
KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: 'kafka:29092'
restart: always
prometheus:
image: prom/prometheus
container_name: prometheus
ports:
- 9090:9090
volumes:
- ./_compose/prometheus:/etc/prometheus
- prom_data:/prometheus
grafana:
image: grafana/grafana:latest
environment:
# - GF_PATHS_PROVISIONING=/etc/grafana/provisioning
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
ports:
- 3000:3000
volumes:
- ./_compose/grafana:/etc/grafana/provisioning/datasources
otel-collector:
image: otel/opentelemetry-collector:0.88.0
command: ["--config=/etc/otel-collector-config.yaml"]
volumes:
- ./_compose/otel-collector/config.yaml:/etc/otel-collector-config.yaml
ports:
- "8888:8888" # Prometheus metrics exposed by the collector
- "8889:8889" # Prometheus exporter metrics
- "4317:4317" # OTLP gRPC receiver
depends_on:
- 'jaeger'
jaeger:
image: jaegertracing/all-in-one:latest
restart: always
environment:
- METRICS_STORAGE_TYPE=prometheus
- PROMETHEUS_SERVER_URL=http://prometheus:9090
- PROMETHEUS_QUERY_SUPPORT_SPANMETRICS_CONNECTOR=${PROMETHEUS_QUERY_SUPPORT_SPANMETRICS_CONNECTOR:-true}
- PROMETHEUS_QUERY_NAMESPACE=${PROMETHEUS_QUERY_NAMESPACE:-}
- PROMETHEUS_QUERY_DURATION_UNIT=${PROMETHEUS_QUERY_DURATION_UNIT:-}
- PROMETHEUS_QUERY_NORMALIZE_CALLS=true
- PROMETHEUS_QUERY_NORMALIZE_DURATION=true
ports:
- "16686:16686"
- "14268"
- "14250"
volumes:
prom_data: