-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yaml
227 lines (215 loc) · 6.18 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
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
# FIXME research integration testing (maybe with docker-compose or microk8s)
# https://github.com/testcontainers/testcontainers-node/issues/109
# https://github.com/visionmedia/supertest
version: '3'
services:
elasticsearch:
container_name: elasticsearch
image: elasticsearch:7.8.0
environment:
- xpack.security.enabled=false
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
logging:
driver: none
zookeeper:
container_name: zookeeper
image: zookeeper
ports:
- 2181:2181
environment:
- ZOO_LOG4J_PROP=WARN
kafka:
container_name: kafka
image: confluentinc/cp-kafka
ports:
- 9092:9092
environment:
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092
- KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1
logging:
driver: none
depends_on:
- zookeeper
mongo-database:
container_name: mongo-database
image: mongo:4
ports:
- 27017:27017
logging:
driver: none
gateway:
container_name: gateway
image: node:lts-alpine
working_dir: /
volumes:
- ./package.json:/package.json
- ./tsconfig.json:/tsconfig.json
- ./services/gateway:/services/gateway
- ./packages:/packages
- ./node_modules:/node_modules
env_file: env/.docker-compose.env
command: yarn run ts-node-dev services/gateway --colors --transpileOnly --debounce 1500
ports:
- 3000:3000
idea:
container_name: idea
image: node:lts-alpine
working_dir: /
volumes:
- ./package.json:/package.json
- ./tsconfig.json:/tsconfig.json
- ./services/idea:/services/idea
- ./packages:/packages
- ./node_modules:/node_modules
env_file: env/.docker-compose.env
command: yarn run ts-node-dev services/idea --colors --transpileOnly --debounce 1500
depends_on:
- kafka
idea-read:
container_name: idea-read
image: node:lts-alpine
working_dir: /
volumes:
- ./package.json:/package.json
- ./tsconfig.json:/tsconfig.json
- ./services/idea-read:/services/idea-read
- ./packages:/packages
- ./node_modules:/node_modules
env_file: env/.docker-compose.env
command: yarn run ts-node-dev services/idea-read --colors --transpileOnly --debounce 1500
depends_on:
- kafka
- idea
authentication:
container_name: authentication
image: node:lts-alpine
working_dir: /
volumes:
- ./package.json:/package.json
- ./tsconfig.json:/tsconfig.json
- ./services/authentication:/services/authentication
- ./packages:/packages
- ./node_modules:/node_modules
env_file: env/.docker-compose.env
command: yarn run ts-node-dev services/authentication --colors --transpileOnly --debounce 1500
depends_on:
- kafka
user:
container_name: user
image: node:lts-alpine
working_dir: /
volumes:
- ./package.json:/package.json
- ./tsconfig.json:/tsconfig.json
- ./services/user:/services/user
- ./packages:/packages
- ./node_modules:/node_modules
env_file: env/.docker-compose.env
command: yarn run ts-node-dev services/user --colors --transpileOnly --debounce 1500
depends_on:
- kafka
user-read:
container_name: user-read
image: node:lts-alpine
working_dir: /
volumes:
- ./package.json:/package.json
- ./tsconfig.json:/tsconfig.json
- ./services/user-read:/services/user-read
- ./packages:/packages
- ./node_modules:/node_modules
env_file: env/.docker-compose.env
command: yarn run ts-node-dev services/user-read --colors --transpileOnly --debounce 1500
depends_on:
- kafka
- user
review:
container_name: review
image: node:lts-alpine
working_dir: /
volumes:
- ./package.json:/package.json
- ./tsconfig.json:/tsconfig.json
- ./services/review:/services/review
- ./packages:/packages
- ./node_modules:/node_modules
env_file: env/.docker-compose.env
command: yarn run ts-node-dev services/review --colors --transpileOnly --debounce 1500
depends_on:
- kafka
review-read:
container_name: review-read
image: node:lts-alpine
working_dir: /
volumes:
- ./package.json:/package.json
- ./tsconfig.json:/tsconfig.json
- ./services/review-read:/services/review-read
- ./packages:/packages
- ./node_modules:/node_modules
env_file: env/.docker-compose.env
command: yarn run ts-node-dev services/review-read --colors --transpileOnly --debounce 1500
depends_on:
- kafka
- review
mailing:
container_name: mailing
image: node:lts-alpine
working_dir: /
volumes:
- ./package.json:/package.json
- ./tsconfig.json:/tsconfig.json
- ./services/mailing:/services/mailing
- ./packages:/packages
- ./node_modules:/node_modules
env_file: env/.docker-compose.env
command: yarn run ts-node-dev services/mailing --colors --transpileOnly --debounce 1500
depends_on:
- kafka
search:
container_name: search
image: node:lts-alpine
working_dir: /
volumes:
- ./package.json:/package.json
- ./tsconfig.json:/tsconfig.json
- ./services/search:/services/search
- ./packages:/packages
- ./node_modules:/node_modules
env_file: env/.docker-compose.env
command: yarn run ts-node-dev services/search --colors --transpileOnly --debounce 1500
depends_on:
- kafka
- elasticsearch
admin:
container_name: admin
image: node:lts-alpine
working_dir: /
volumes:
- ./package.json:/package.json
- ./tsconfig.json:/tsconfig.json
- ./services/admin:/services/admin
- ./packages:/packages
- ./node_modules:/node_modules
env_file: env/.docker-compose.env
command: yarn run ts-node-dev services/admin --colors --transpileOnly --debounce 1500
depends_on:
- kafka
volumes:
elasticsearch-data:
driver: local