-
Notifications
You must be signed in to change notification settings - Fork 55
/
docker-compose.yml
334 lines (309 loc) · 6.92 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: '2.1'
services:
# certs:
# image: nginx
# restart: always
# depends_on:
# - apigw
# ports:
# - "80:80"
# - "443:443"
# volumes:
# - /etc/letsencrypt:/certs
# - ./certs/default.conf:/etc/nginx/conf.d/default.conf
history:
image: dojot/history
restart: always
depends_on:
- mongodb
environment:
FALCON_SETTINGS_MODULE: 'history.settings.docker'
logging:
driver: json-file
options:
max-size: 100m
persister:
image: dojot/persister
restart: always
depends_on:
- mongodb
- auth
- kafka
- data-broker
environment:
FALCON_SETTINGS_MODULE: 'history.settings.docker'
logging:
driver: json-file
options:
max-size: 100m
mongodb:
image: "mongo:3.2"
restart: always
user: "mongodb"
logging:
driver: json-file
options:
max-size: 100m
mosca-redis:
image: redis
restart: always
logging:
driver: json-file
options:
max-size: 100m
iotagent-mqtt:
image: dojot/iotagent-mosca
depends_on:
- mosca-redis
- kafka
- data-broker
ports:
- 1883:1883
- 8883:8883
restart: always
logging:
driver: json-file
options:
max-size: 100m
gui:
image: dojot/gui:latest
restart: always
logging:
driver: json-file
options:
max-size: 100m
# orion replacement component
data-broker:
image: dojot/data-broker
restart: always
depends_on:
- kafka
- data-broker-redis
logging:
driver: json-file
options:
max-size: 100m
data-broker-redis:
image: redis
restart: always
logging:
driver: json-file
options:
max-size: 100m
device-manager:
image: dojot/device-manager
restart: always
depends_on:
- postgres
- kafka
- data-broker
logging:
driver: json-file
options:
max-size: 100m
image-manager:
image: dojot/image-manager:latest
restart: always
depends_on:
- postgres
- minio
logging:
driver: json-file
options:
max-size: 100m
environment:
# TODO: The following should be unique for each environment
S3ACCESSKEY: 9HEODSF6WQN5EZ39DM7Z
S3SECRETKEY: fT5nAgHR9pkj0yYsBdc4p+PPq6ArjshcPdz0HA6W
minio:
image:
restart: always
image: "minio/minio"
logging:
driver: json-file
options:
max-size: 100m
environment:
# TODO: The following should be unique for each environment
MINIO_ACCESS_KEY: 9HEODSF6WQN5EZ39DM7Z
MINIO_SECRET_KEY: fT5nAgHR9pkj0yYsBdc4p+PPq6ArjshcPdz0HA6W
command: server /data
auth-redis:
image: redis
restart: always
logging:
driver: json-file
options:
max-size: 100m
auth:
image: dojot/auth:latest
restart: always
depends_on:
- apigw
- postgres
- auth-redis
depends_on:
postgres:
condition: service_healthy
environment:
AUTH_DB_HOST: "postgres"
AUTH_DB_USER: "kong"
AUTH_KONG_URL: "http://apigw:8001"
AUTH_CACHE_HOST: "auth-redis"
# This is used to select the type of cache to be used. Allowed values are "redis" or "nocache"
AUTH_CACHE_NAME: "redis"
logging:
driver: json-file
options:
max-size: 100m
postgres:
image: "postgres:9.4"
restart: always
environment:
POSTGRES_USER: "kong"
POSTGRES_DB: "kong"
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 10s
timeout: 5s
retries: 5
logging:
driver: json-file
options:
max-size: 100m
kong-migration:
image: dojot/kong:latest
depends_on:
postgres:
condition: service_healthy
environment:
- KONG_DATABASE=postgres
- KONG_PG_HOST=postgres
command: kong migrations up
restart: on-failure
apigw:
image: dojot/kong:latest
restart: always
depends_on:
postgres:
condition: service_healthy
kong-migration:
condition: service_started
ports:
- "8000:8000"
environment:
KONG_DATABASE: "postgres"
KONG_PG_HOST: "postgres"
volumes:
- ./apigw/plugins/pep-kong:/plugins/pep-kong
- ./apigw/plugins/mutualauthentication:/plugins/mutualauthentication
logging:
driver: json-file
options:
max-size: 100m
kong-config:
image: appropriate/curl
entrypoint: /opt/kong.config.sh
restart: on-failure
depends_on:
- apigw
volumes:
- ./kong.config.sh:/opt/kong.config.sh
flowbroker:
image: dojot/flowbroker
restart: always
depends_on:
- rabbitmq
- kafka
rabbitmq:
image: rabbitmq
restart: always
logging:
driver: json-file
options:
max-size: 100m
alarm-manager:
image: dojot/alarm-manager:latest
restart: always
depends_on:
- mongodb
- rabbitmq
environment:
- MONGO_HOST=mongodb
- RABBIT_HOST=rabbitmq
volumes:
- ./alarms:/opt/jboss/dojot/alarms/metamodel
logging:
driver: json-file
options:
max-size: 100m
zookeeper:
image: "zookeeper:3.4"
restart: always
logging:
driver: json-file
options:
max-size: 100m
kafka:
image: "ches/kafka:0.10.1.1"
depends_on:
- zookeeper
restart: always
environment:
ZOOKEEPER_IP: zookeeper
KAFKA_NUM_PARTITIONS: 10
logging:
driver: json-file
options:
max-size: 100m
###
# Currently this is only needed if MQTT over TLS is used.
###
#
# ejbca:
# image: "dojot/ejbca"
# restart: always
# logging:
# driver: json-file
# options:
# max-size: 100m
###
# If mutual authentication is needed, please uncomment these three components below
###
#
# ma_redis:
# image: "redis:3.2.8"
# volumes:
# - ./ma/redis.conf:/usr/local/etc/redis/redis.conf
# - ./ma/sentinel.conf:/usr/local/etc/redis/sentinel.conf
# - ./ma/redis_init.sh:/usr/local/etc/redis/redis_init.sh
# command: sh -c "chmod +x /usr/local/etc/redis/redis_init.sh && /usr/local/etc/redis/redis_init.sh"
# logging:
# driver: json-file
# options:
# max-size: 100m
#
# kerberos:
# image: "dojot/kerberos"
# environment:
# - CASSANDRA_HOSTNAME=cassandra
# - CASSANDRA_PORT=9042
# volumes:
# - ./ma/node.config:/opt/jboss/wildfly/standalone/configuration/node.config
# - ./ma/kafka.brokers:/opt/jboss/wildfly/standalone/configuration/kafka.brokers
# - ./ma/redis.sentinels:/opt/jboss/wildfly/standalone/configuration/redis.sentinels
# depends_on:
# - kafka
# - redis
# - cassandra
# logging:
# driver: json-file
# options:
# max-size: 100m
#
# cassandra:
# image: "cassandra:3.10"
# logging:
# driver: json-file
# options:
# max-size: 100m