forked from uber/cadence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-local.yml
251 lines (236 loc) · 5.35 KB
/
docker-compose-local.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
version: "3.5"
services:
cassandra:
image: cassandra:3.11
expose:
- "9042"
networks:
services-network:
aliases:
- cassandra
mysql:
image: mysql:8.0
environment:
MYSQL_DATABASE: db
MYSQL_ROOT_PASSWORD: uber
volumes:
- ./mysql-init:/docker-entrypoint-initdb.d
expose:
- "3306"
networks:
services-network:
aliases:
- mysql
postgres:
image: postgres:12.4
environment:
POSTGRES_PASSWORD: cadence
POSTGRES_USER: cadence
expose:
- "5432"
networks:
services-network:
aliases:
- postgres
zookeeper:
image: wurstmeister/zookeeper:3.4.6
expose:
- "2181"
networks:
services-network:
aliases:
- zookeeper
kafka:
image: wurstmeister/kafka:2.12-2.1.1
depends_on:
- zookeeper
expose:
- "9092"
networks:
services-network:
aliases:
- kafka
environment:
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.22
expose:
- "9200"
networks:
services-network:
aliases:
- elasticsearch
environment:
- discovery.type=single-node
mongo:
image: mongo:5
restart: always
networks:
services-network:
aliases:
- mongo
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: cadence
unit-test:
build:
context: ../../
dockerfile: ./docker/buildkite/Dockerfile
command: make cover_profile
environment:
- "CASSANDRA=1"
- "MYSQL=1"
- "POSTGRES=1"
- "MONGODB=1"
- "CASSANDRA_SEEDS=cassandra"
- "MYSQL_SEEDS=mysql"
- "POSTGRES_SEEDS=postgres"
- "POSTGRES_USER=cadence"
- "POSTGRES_PASSWORD=cadence"
depends_on:
- cassandra
- mysql
- postgres
- mongo
volumes:
- ../../:/cadence
networks:
services-network:
aliases:
- unit-test
integration-test-cassandra:
build:
context: ../../
dockerfile: ./docker/buildkite/Dockerfile
command: make cover_integration_profile
environment:
- "CASSANDRA=1"
- "CASSANDRA_SEEDS=cassandra"
- "ES_SEEDS=elasticsearch"
- "KAFKA_SEEDS=kafka"
- "TEST_TAG=esintegration"
depends_on:
- cassandra
- elasticsearch
- kafka
volumes:
- ../../:/cadence
networks:
services-network:
aliases:
- integration-test
integration-test-mysql:
build:
context: ../../
dockerfile: ./docker/buildkite/Dockerfile
command: make cover_integration_profile
environment:
- "MYSQL=1"
- "MYSQL_SEEDS=mysql"
- "ES_SEEDS=elasticsearch"
- "KAFKA_SEEDS=kafka"
- "PERSISTENCE_TYPE=sql"
- "TEST_TAG=esintegration"
depends_on:
- mysql
- elasticsearch
- kafka
volumes:
- ../../:/cadence
networks:
services-network:
aliases:
- integration-test
integration-test-postgres:
build:
context: ../../
dockerfile: ./docker/buildkite/Dockerfile
command: make cover_integration_profile
environment:
- "POSTGRES=1"
- "POSTGRES_SEEDS=postgres"
- "PERSISTENCE_PLUGIN=postgres"
- "ES_SEEDS=elasticsearch"
- "KAFKA_SEEDS=kafka"
- "PERSISTENCE_TYPE=sql"
- "TEST_TAG=esintegration"
depends_on:
- postgres
- elasticsearch
- kafka
volumes:
- ../../:/cadence
networks:
services-network:
aliases:
- integration-test
integration-test-v2:
build:
context: ../../
dockerfile: ./docker/buildkite/Dockerfile
command: make cover_integration_profile EVENTSV2=true
environment:
- "CASSANDRA=1"
- "CASSANDRA_SEEDS=cassandra"
- "ES_SEEDS=elasticsearch"
- "KAFKA_SEEDS=kafka"
- "TEST_TAG=esintegration"
depends_on:
- cassandra
- elasticsearch
- kafka
volumes:
- ../../:/cadence
networks:
services-network:
aliases:
- integration-test
integration-test-ndc-cassandra:
build:
context: ../../
dockerfile: ./docker/buildkite/Dockerfile
command: make cover_ndc_profile
environment:
- "CASSANDRA=1"
- "CASSANDRA_SEEDS=cassandra"
- "ES_SEEDS=elasticsearch"
- "KAFKA_SEEDS=kafka"
- "TEST_TAG=esintegration"
depends_on:
- cassandra
- elasticsearch
- kafka
volumes:
- ../../:/cadence
networks:
services-network:
aliases:
- integration-test-ndc
integration-test-ndc-mysql:
build:
context: ../../
dockerfile: ./docker/buildkite/Dockerfile
command: make cover_ndc_profile
environment:
- "MYSQL=1"
- "MYSQL_SEEDS=mysql"
- "ES_SEEDS=elasticsearch"
- "KAFKA_SEEDS=kafka"
- "PERSISTENCE_TYPE=sql"
- "TEST_TAG=esintegration"
depends_on:
- mysql
- elasticsearch
- kafka
volumes:
- ../../:/cadence
networks:
services-network:
aliases:
- integration-test-ndc
networks:
services-network:
name: services-network
driver: bridge