-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
167 lines (156 loc) · 4.09 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
version: '3.5'
services:
zookeeper:
container_name: mitra-zookeeper
image: ${CONTAINER_REGISTRY}/${CONTAINER_REPOSITORY}/zookeeper:${ZOOKEEPER_TAG:-latest}
ports:
- "2181:2181"
env_file:
- ./conf/zk.env
networks:
- core
restart: always
broker:
container_name: mitra-broker
image: ${CONTAINER_REGISTRY}/${CONTAINER_REPOSITORY}/kafka:${KAFKA_TAG:-latest}
depends_on:
- zookeeper
ports:
- "29093:29093"
env_file:
- ./conf/kafka.env
networks:
- core
restart: always
init:
container_name: mitra-init-${MACHINE_ID:-M001}
image: ${CONTAINER_REGISTRY}/${CONTAINER_REPOSITORY}/kafka:${KAFKA_TAG:-latest}
depends_on:
- broker
entrypoint: [ '/bin/sh', '-c' ]
command: |
"
/etc/scripts/init.sh
"
env_file:
- ./conf/init.env
networks:
- core
volumes:
- ./scripts:/etc/scripts
payload:
container_name: mitra-payload-${MACHINE_ID:-M001}
image: ${CONTAINER_REGISTRY}/${CONTAINER_REPOSITORY}/payload:${PAYLOAD_TAG:-latest}
depends_on:
- init
env_file:
- ./conf/common.env
- ./conf/payload.env
- ./conf/sasl-auth.env
healthcheck:
test: wget --no-verbose --tries=1 http://localhost:8080/health || exit 1
interval: 2s
timeout: 1s
retries: 3
start_period: 10s
networks:
- core
limits:
container_name: mitra-limits-${MACHINE_ID:-M001}
image: ${CONTAINER_REGISTRY}/${CONTAINER_REPOSITORY}/limits:${LIMITS_TAG:-latest}
depends_on:
- init
env_file:
- ./conf/common.env
- ./conf/limits.env
- ./conf/sasl-auth.env
healthcheck:
test: wget --no-verbose --tries=1 http://localhost:8080/health || exit 1
interval: 2s
timeout: 1s
retries: 3
start_period: 10s
networks:
- core
alarms:
container_name: mitra-alarms-${MACHINE_ID:-M001}
image: ${CONTAINER_REGISTRY}/${CONTAINER_REPOSITORY}/alarms:${ALARMS_TAG:-latest}
depends_on:
- payload
env_file:
- ./conf/common.env
- ./conf/alarms.env
healthcheck:
test: wget --no-verbose --tries=1 http://localhost:8080/q/health || exit 1
interval: 2s
timeout: 1s
retries: 3
start_period: 10s
networks:
- core
alerts:
container_name: mitra-alerts-${MACHINE_ID:-M001}
image: ${CONTAINER_REGISTRY}/${CONTAINER_REPOSITORY}/alerts:${ALERTS_TAG:-latest}
depends_on:
- payload
env_file:
- ./conf/common.env
- ./conf/alerts.env
healthcheck:
test: wget --no-verbose --tries=1 http://localhost:8080/q/health || exit 1
interval: 2s
timeout: 1s
retries: 3
start_period: 10s
networks:
- core
merger:
container_name: mitra-merger-${MACHINE_ID:-M001}
image: ${CONTAINER_REGISTRY}/${CONTAINER_REPOSITORY}/merger:${MERGER_TAG:-latest}
depends_on:
- alarms
- alerts
env_file:
- ./conf/common.env
- ./conf/merger.env
healthcheck:
test: wget --no-verbose --tries=1 http://localhost:8080/q/health || exit 1
interval: 2s
timeout: 1s
retries: 3
start_period: 10s
networks:
- core
streamer:
container_name: mitra-streamer-${MACHINE_ID:-M001}
image: ${CONTAINER_REGISTRY}/${CONTAINER_REPOSITORY}/streamer:${STREAMER_TAG:-latest}
depends_on:
- merger
env_file:
- ./conf/common.env
- ./conf/streamer.env
healthcheck:
test: wget --no-verbose --tries=1 http://localhost:8080/q/health || exit 1
interval: 2s
timeout: 1s
retries: 3
start_period: 10s
ports:
- ${EVENTS_PORT}:${EVENTS_PORT}
networks:
- core
dashboard:
container_name: mitra-dashboard-${MACHINE_ID:-M001}
image: ${CONTAINER_REGISTRY}/${CONTAINER_REPOSITORY}/dashboard:${DASHBOARD_TAG:-latest}
depends_on:
- streamer
env_file:
- ./conf/common.env
- ./conf/dashboard.env
ports:
- ${UI_PORT}:${UI_PORT}
networks:
- core
networks:
core:
name: core