forked from DataDog/dd-trace-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
334 lines (311 loc) · 9.97 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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
version: '3'
services:
aws_sqs:
image: softwaremill/elasticmq
ports:
- "127.0.0.1:9324:9324"
rabbitmq:
image: rabbitmq:3-management
command: rabbitmq-server
ports:
- "127.0.0.1:5672:5672"
- "127.0.0.1:15672:15672"
servicestackredis:
image: redis:4-alpine
command: redis-server --bind 0.0.0.0
ports:
- "127.0.0.1:6379:6379"
stackexchangeredis:
image: redis:4-alpine
command: redis-server --bind 0.0.0.0
ports:
- "127.0.0.1:6389:6379"
mongo:
image: mongo:4.0.9
ports:
- "127.0.0.1:27017:27017"
command: mongod
elasticsearch6:
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.2
ports:
- "127.0.0.1:9200:9200"
- "127.0.0.1:9300:9300"
environment:
- discovery.type=single-node
elasticsearch5:
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.16
ports:
- "127.0.0.1:9205:9200"
- "127.0.0.1:9305:9300"
environment:
- discovery.type=single-node
elasticsearch7_arm64:
image: elasticsearch:7.10.1
ports:
- "127.0.0.1:9200:9200"
- "127.0.0.1:9300:9300"
environment:
- discovery.type=single-node
postgres:
image: postgres:10.5-alpine
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=postgres
ports:
- "127.0.0.1:5432:5432"
mysql:
image: mysql/mysql-server:8.0
environment:
- MYSQL_DATABASE=world
- MYSQL_ROOT_PASSWORD=mysqldb
- MYSQL_USER=mysqldb
- MYSQL_PASSWORD=mysqldb
ports:
- "127.0.0.1:3307:3306"
mysql57:
image: mysql/mysql-server:5.7
environment:
- MYSQL_DATABASE=world
- MYSQL_ROOT_PASSWORD=mysqldb
- MYSQL_USER=mysqldb
- MYSQL_PASSWORD=mysqldb
ports:
- "127.0.0.1:3407:3306"
sqlserver:
image: mcr.microsoft.com/mssql/server:latest
ports:
- "127.0.0.1:1433:1433"
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=Strong!Passw0rd
sqledge:
image: mcr.microsoft.com/azure-sql-edge:latest
ports:
- "127.0.0.1:1433:1433"
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=Strong!Passw0rd
wcfservice:
image: mcr.microsoft.com/dotnet/framework/wcf:4.8
ports:
- "127.0.0.1:8585:8585"
# See https://github.com/confluentinc/cp-all-in-one/blob/6.1.1-post/cp-all-in-one/docker-compose.yml
# For original definitions
kafka-zookeeper:
image: confluentinc/cp-zookeeper:6.1.1
hostname: kafka-zookeeper
container_name: kafka-zookeeper
ports:
- "2181:2181"
restart: unless-stopped
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
kafka-broker:
image: confluentinc/cp-server:6.1.1
hostname: kafka-broker
container_name: kafka-broker
depends_on:
- kafka-zookeeper
ports:
- "9092:9092"
- "9101:9101"
restart: unless-stopped
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: 'kafka-zookeeper:2181'
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_AUTO_CREATE_TOPICS_ENABLE: "false"
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka-broker:29092,PLAINTEXT_HOST://localhost:9092
KAFKA_METRIC_REPORTERS: io.confluent.metrics.reporter.ConfluentMetricsReporter
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
KAFKA_CONFLUENT_LICENSE_TOPIC_REPLICATION_FACTOR: 1
KAFKA_CONFLUENT_BALANCER_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
KAFKA_JMX_PORT: 9101
KAFKA_JMX_HOSTNAME: localhost
KAFKA_CONFLUENT_SCHEMA_REGISTRY_URL: http://kafka-schema-registry:8081
CONFLUENT_METRICS_REPORTER_BOOTSTRAP_SERVERS: kafka-broker:29092
CONFLUENT_METRICS_REPORTER_TOPIC_REPLICAS: 1
CONFLUENT_METRICS_ENABLE: 'true'
CONFLUENT_SUPPORT_CUSTOMER_ID: 'anonymous'
kafka-schema-registry:
image: confluentinc/cp-schema-registry:6.1.1
hostname: kafka-schema-registry
container_name: kafka-schema-registry
depends_on:
- kafka-broker
ports:
- "8081:8081"
restart: unless-stopped
environment:
SCHEMA_REGISTRY_HOST_NAME: kafka-schema-registry
SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: 'kafka-broker:29092'
SCHEMA_REGISTRY_LISTENERS: http://0.0.0.0:8081
kafka-control-center:
image: confluentinc/cp-enterprise-control-center:6.1.1
hostname: kafka-control-center
container_name: kafka-control-center
depends_on:
- kafka-broker
- kafka-schema-registry
ports:
- "9021:9021"
restart: unless-stopped
environment:
CONTROL_CENTER_BOOTSTRAP_SERVERS: 'kafka-broker:29092'
CONTROL_CENTER_SCHEMA_REGISTRY_URL: "http://kafka-schema-registry:8081"
CONTROL_CENTER_REPLICATION_FACTOR: 1
CONTROL_CENTER_INTERNAL_TOPICS_PARTITIONS: 1
CONTROL_CENTER_MONITORING_INTERCEPTOR_TOPIC_PARTITIONS: 1
CONFLUENT_METRICS_TOPIC_REPLICATION: 1
PORT: 9021
kafka-rest-proxy:
image: confluentinc/cp-kafka-rest:6.1.1
depends_on:
- kafka-broker
- kafka-schema-registry
ports:
- 8082:8082
hostname: kafka-rest-proxy
container_name: kafka-rest-proxy
restart: unless-stopped
environment:
KAFKA_REST_HOST_NAME: kafka-rest-proxy
KAFKA_REST_BOOTSTRAP_SERVERS: 'kafka-broker:29092'
KAFKA_REST_LISTENERS: "http://0.0.0.0:8082"
KAFKA_REST_SCHEMA_REGISTRY_URL: 'http://kafka-schema-registry:8081'
# The IIS images are based on Windows images, so they can only be run on Docker for Windows,
# and only after switching to run Windows containers
IntegrationTests.IIS:
build:
context: ./
args:
- ENABLE_32_BIT
- DOTNET_TRACER_MSI
dockerfile: ./build/_build/docker/iis.dockerfile
image: datadog-iis-loaderoptimizationregkey
ports:
- "8080:80"
environment:
- DD_CLR_ENABLE_NGEN=${DD_CLR_ENABLE_NGEN:-0}
IntegrationTests:
build:
context: ./build/_build/
dockerfile: docker/${baseImage:-debian}.dockerfile
args:
- DOTNETSDK_VERSION=${dotnetCoreSdk5Version:-5.0.103}
image: dd-trace-dotnet/${baseImage:-debian}-tester
command: dotnet /build/bin/Debug/_build.dll RunLinuxIntegrationTests --framework ${framework:-netcoreapp3.1} --code-coverage
volumes:
- ./:/project
environment:
- NugetPackageDirectory=/project/${relativeNugetPackageDirectory:-packages}
- tracerHome=/project/${relativeTracerHome:-src/bin/windows-tracer-home}
- artifacts=/project/${relativeArtifacts:-src/bin/artifacts}
- framework=${framework:-netcoreapp3.1}
- baseImage=${baseImage:-default}
- DD_CLR_ENABLE_NGEN=${DD_CLR_ENABLE_NGEN:-0}
- MONGO_HOST=mongo
- SERVICESTACK_REDIS_HOST=servicestackredis:6379
- STACKEXCHANGE_REDIS_HOST=stackexchangeredis:6379
- ELASTICSEARCH6_HOST=elasticsearch6:9200
- ELASTICSEARCH5_HOST=elasticsearch5:9200
- SQLSERVER_CONNECTION_STRING=Server=sqlserver;User=sa;Password=Strong!Passw0rd
- POSTGRES_HOST=postgres
- MYSQL_HOST=mysql
- MYSQL_PORT=3306
- MYSQL57_HOST=mysql57
- MYSQL57_PORT=3306
- RABBITMQ_HOST=rabbitmq
- KAFKA_BROKER_HOST=kafka-broker:29092
- AWS_SQS_HOST=aws_sqs:9324
depends_on:
- servicestackredis
- stackexchangeredis
- elasticsearch6
- elasticsearch5
- sqlserver
- mongo
- postgres
- mysql
- mysql57
- rabbitmq
- kafka-broker
- kafka-zookeeper
- aws_sqs
StartDependencies:
image: andrewlock/wait-for-dependencies
depends_on:
- servicestackredis
- stackexchangeredis
- elasticsearch6
- elasticsearch5
- sqlserver
- mongo
- postgres
- mysql
- mysql57
- rabbitmq
- kafka-broker
- kafka-zookeeper
- aws_sqs
environment:
- TIMEOUT_LENGTH=120
command: servicestackredis:6379 stackexchangeredis:6379 elasticsearch5:9200 elasticsearch6:9200 sqlserver:1433 mongo:27017 postgres:5432 mysql:3306 mysql57:3306 rabbitmq:5672 kafka-broker:9092 kafka-zookeeper:2181 aws_sqs:9324
IntegrationTests.ARM64:
build:
context: ./build/_build/
dockerfile: docker/${baseImage:-debian}.dockerfile
args:
- DOTNETSDK_VERSION=${dotnetCoreSdk5Version:-5.0.103}
image: dd-trace-dotnet/${baseImage:-debian}-tester
command: dotnet /build/bin/Debug/_build.dll RunLinuxIntegrationTests --framework ${framework:-netcoreapp3.1}
volumes:
- ./:/project
environment:
- NugetPackageDirectory=/project/${relativeNugetPackageDirectory:-packages}
- tracerHome=/project/${relativeTracerHome:-src/bin/windows-tracer-home}
- artifacts=/project/${relativeArtifacts:-src/bin/artifacts}
- framework=${framework:-netcoreapp3.1}
- baseImage=${baseImage:-debian}
- DD_CLR_ENABLE_NGEN=${DD_CLR_ENABLE_NGEN:-0}
- MONGO_HOST=mongo
- SERVICESTACK_REDIS_HOST=servicestackredis:6379
- STACKEXCHANGE_REDIS_HOST=stackexchangeredis:6379
- ELASTICSEARCH6_HOST=elasticsearch7_arm64:9200
- ELASTICSEARCH5_HOST=elasticsearch7_arm64:9200
- SQLSERVER_CONNECTION_STRING=Server=sqledge;User=sa;Password=Strong!Passw0rd
- POSTGRES_HOST=postgres
- MYSQL_HOST=mysql
- MYSQL_PORT=3306
- RABBITMQ_HOST=rabbitmq
- AWS_SQS_HOST=aws_sqs:9324
depends_on:
- servicestackredis
- stackexchangeredis
- elasticsearch7_arm64
- sqledge
- mongo
- postgres
- mysql
- rabbitmq
- aws_sqs
StartDependencies.ARM64:
image: andrewlock/wait-for-dependencies
depends_on:
- servicestackredis
- stackexchangeredis
- elasticsearch7_arm64
- sqledge
- mongo
- postgres
- mysql
- rabbitmq
- aws_sqs
environment:
- TIMEOUT_LENGTH=120
command: servicestackredis:6379 stackexchangeredis:6379 elasticsearch7_arm64:9200 sqledge:1433 mongo:27017 postgres:5432 mysql:3306 rabbitmq:5672 aws_sqs:9324