-
Notifications
You must be signed in to change notification settings - Fork 29
/
docker-compose.yml
244 lines (230 loc) · 5.16 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
version: '3.4'
services:
db:
container_name: db
build:
context: .
dockerfile: dev/database/Dockerfile
image: patchman-engine-db
volumes:
- db-data:/var/lib/pgsql/data
ports:
- 5433:5432
env_file:
- ./conf/database.env
kafka:
container_name: kafka
build:
context: .
dockerfile: ./dev/kafka/Dockerfile
image: patchman-engine-kafka
env_file:
- ./conf/kafka.env
volumes:
- ./dev/kafka/secrets:/etc/kafka/secrets
- ./dev/kafka:/app
ports:
- 29092:29092
- 29093:29093
- 9092:9092
- 9093:9093
- 9099:9099
security_opt:
- label=disable
# https://github.com/wurstmeister/kafka-docker/issues/389#issuecomment-875428899
restart: always
platform:
container_name: platform
build:
context: .
dockerfile: Dockerfile
args:
- INSTALL_TOOLS=yes
target: buildimg
image: patchman-engine-app
env_file:
- ./conf/platform.env
- ./conf/gorun.env
command: ./dev/scripts/docker-compose-entrypoint.sh platform
restart: unless-stopped
depends_on:
- db
- kafka
ports:
- 9001:9001
volumes:
- ./:/go/src/app
security_opt:
- label=disable
db_admin:
container_name: db_admin
image: patchman-engine-app
env_file:
- ./conf/common.env
- ./conf/database_admin.env
- ./conf/gorun.env
command: ./database_admin/entrypoint.sh
depends_on:
- db
- platform
volumes:
- ./:/go/src/app
security_opt:
- label=disable
db_feed:
container_name: db_feed
image: patchman-engine-app
env_file:
- ./conf/test.env
- ./conf/gorun.env
command: go run ./scripts/feed_db.go
depends_on:
- db
- platform
volumes:
- ./:/go/src/app
security_opt:
- label=disable
manager:
container_name: manager
image: patchman-engine-app
env_file:
- ./conf/common.env
- ./conf/manager.env
- ./conf/gorun.env
command: ./dev/scripts/docker-compose-entrypoint.sh manager
ports:
- 8080:8080
- 9080:9080 # metrics
- 9000:9000 # private port - pprof
depends_on:
- db
- platform
volumes:
- ./:/go/src/app
security_opt:
- label=disable
listener:
container_name: listener
image: patchman-engine-app
env_file:
- ./conf/common.env
- ./conf/listener.env
- ./conf/gorun.env
command: ./dev/scripts/docker-compose-entrypoint.sh listener
ports:
- 8081:8080
- 9081:9080 # metrics
- 9002:9000 # private port - pprof
depends_on:
- db
- platform
volumes:
- ./:/go/src/app
security_opt:
- label=disable
evaluator_upload:
container_name: evaluator_upload
image: patchman-engine-app
env_file:
- ./conf/common.env
- ./conf/evaluator_common.env
- ./conf/evaluator_upload.env
- ./conf/gorun.env
command: ./dev/scripts/docker-compose-entrypoint.sh evaluator
ports:
- 8082:8080
- 9003:9000 # private port - pprof
depends_on:
- db
- platform
volumes:
- ./:/go/src/app
security_opt:
- label=disable
evaluator_recalc:
container_name: evaluator_recalc
image: patchman-engine-app
env_file:
- ./conf/common.env
- ./conf/evaluator_common.env
- ./conf/evaluator_recalc.env
- ./conf/gorun.env
command: ./dev/scripts/docker-compose-entrypoint.sh evaluator
ports:
- 8084:8080
- 9004:9000 # private port - pprof
depends_on:
- db
- platform
volumes:
- ./:/go/src/app
security_opt:
- label=disable
vmaas_sync:
container_name: vmaas_sync
image: patchman-engine-app
env_file:
- ./conf/common.env
- ./conf/vmaas_sync.env
- ./conf/gorun.env
command: ./dev/scripts/docker-compose-entrypoint.sh job vmaas_sync
ports:
- 8083:8080
restart: on-failure
depends_on:
- db
- kafka
- platform
volumes:
- ./:/go/src/app
security_opt:
- label=disable
admin:
container_name: admin
image: patchman-engine-app
env_file:
- ./conf/common.env
- ./conf/admin_api.env
- ./conf/gorun.env
command: ./dev/scripts/docker-compose-entrypoint.sh admin
ports:
- 8085:8080
depends_on:
- db
- kafka
- platform
volumes:
- ./:/go/src/app
security_opt:
- label=disable
prometheus:
container_name: prometheus
image: docker.io/prom/prometheus:v2.50.0
volumes:
- ./dashboards/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus-data:/prometheus
ports:
- 9090:9090
restart: unless-stopped
profiles:
- monitoring
security_opt:
- label=disable
grafana:
container_name: grafana
build:
context: ./
dockerfile: ./dev/grafana/Dockerfile
image: patchman-grafana:latest
ports:
- 3000:3000
restart: unless-stopped
volumes:
- grafana-data:/var/lib/grafana
profiles:
- monitoring
volumes:
db-data:
grafana-data:
prometheus-data: