-
Notifications
You must be signed in to change notification settings - Fork 41
/
docker-compose.yml
260 lines (243 loc) · 6.26 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
version: '3'
services:
ve_database:
command:
- "postgres"
- "-c"
- "log_timezone=UTC"
- "-c"
- "timezone=UTC"
container_name: vulnerability-engine-database
image: docker.io/library/postgres:16
restart: unless-stopped
env_file:
- ./conf/common.env
- ./conf/database.env
ports:
- 15432:5432
volumes:
- vulnerability-engine-db-data:/var/lib/postgresql/data
ve_database_init:
command: >
bash -c "/engine/dbupgrade.sh && /engine/local_init_db.sh"
container_name: vulnerability-engine-database-init
image: vulnerability-engine-app:latest
env_file:
- ./conf/common.env
- ./conf/database.env
depends_on:
- ve_database
ve_manager:
command: /engine/entrypoint.sh manager
container_name: vulnerability-engine-manager
build:
context: ./
dockerfile: ./Dockerfile
args:
REQUIRE_RHEL: "no"
image: vulnerability-engine-app:latest
restart: unless-stopped
env_file:
- ./conf/common.env
- ./conf/manager_base.env
- ./conf/manager.env
ports:
- 8300:8000
depends_on:
- ve_database
- platform_mock
ve_manager_admin:
command: /engine/entrypoint.sh manager-admin
container_name: vulnerability-engine-manager-admin
image: vulnerability-engine-app:latest
restart: unless-stopped
env_file:
- ./conf/common.env
- ./conf/manager_base.env
- ./conf/database.env
ports:
- 8400:8000
depends_on:
- ve_database
- platform_mock
platform_mock:
container_name: platform-mock
build:
context: ./
dockerfile: ./platform_mock/Dockerfile
args:
REQUIRE_RHEL: "no"
image: vulnerability-engine-mock:latest
restart: unless-stopped
env_file:
- ./conf/common.env
- ./conf/platform_mock.env
ports:
- 9092:9092
- 8100:8000
tmpfs: /tmp
ve_vmaas_sync:
command: /engine/entrypoint.sh vmaas-sync
container_name: vulnerability-engine-vmaas-sync
image: vulnerability-engine-app:latest
env_file:
- ./conf/common.env
- ./conf/vmaas-sync.env
networks:
- default
- vmaas_default
depends_on:
- ve_database
- platform_mock
profiles:
- vmsync
ve_prometheus:
container_name: vulnerability-engine-prometheus
image: prom/prometheus:v2.21.0
volumes:
- ve-prometheus-data:/prometheus
- ./monitoring/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
security_opt:
- label=disable
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
ports:
- 9091:9090
depends_on:
- ve_evaluator_recalc
- ve_evaluator_upload
- ve_listener
- ve_manager
restart: unless-stopped
profiles:
- monitoring
ve_grafana:
container_name: vulnerability-engine-grafana
build:
context: ./
dockerfile: ./monitoring/grafana/Dockerfile
image: vulnerability-engine-grafana:latest
depends_on:
- ve_prometheus
ports:
- 3001:3000
restart: unless-stopped
profiles:
- monitoring
ve_taskomatic:
command: /engine/entrypoint.sh taskomatic
container_name: vulnerability-engine-taskomatic
image: vulnerability-engine-app:latest
restart: unless-stopped
env_file:
- ./conf/common.env
- ./conf/taskomatic.env
- ./conf/taskomatic_db_user.env
depends_on:
- ve_database
ve_notificator:
command: /engine/entrypoint.sh notificator
container_name: vulnerability-engine-notificator
image: vulnerability-engine-app:latest
restart: unless-stopped
env_file:
- ./conf/common.env
- ./conf/notificator.env
depends_on:
- ve_database
- ve_evaluator_recalc
- ve_evaluator_upload
ve_exploit_sync:
command: /engine/entrypoint.sh exploit-sync
container_name: vulnerability-engine-exploit-sync
image: vulnerability-engine-app:latest
env_file:
- ./conf/common.env
- ./conf/exploit-sync.env
- ./conf/taskomatic_db_user.env
depends_on:
- ve_database
- platform_mock
profiles:
- exploit-sync
ve_grouper:
command: /engine/entrypoint.sh grouper
container_name: vulnerability-engine-grouper
image: vulnerability-engine-app:latest
restart: unless-stopped
env_file:
- ./conf/common.env
- ./conf/listener.env
- ./conf/grouper.env
depends_on:
- platform_mock
ve_listener:
command: /engine/entrypoint.sh listener
container_name: vulnerability-engine-listener
image: vulnerability-engine-app:latest
restart: unless-stopped
env_file:
- ./conf/common.env
- ./conf/listener.env
ports:
- "8087:8087"
depends_on:
- ve_database
- ve_grouper
- platform_mock
ve_evaluator_recalc:
command: /engine/entrypoint.sh evaluator
container_name: vulnerability-engine-evaluator-recalc
image: vulnerability-engine-app:latest
restart: unless-stopped
env_file:
- ./conf/common.env
- ./conf/evaluator.env
- ./conf/evaluator_recalc.env
ports:
- 8088:8088
networks:
- default
- vmaas_default
depends_on:
- ve_database
- platform_mock
ve_evaluator_upload:
command: /engine/entrypoint.sh evaluator
container_name: vulnerability-engine-evaluator-upload
image: vulnerability-engine-app:latest
restart: unless-stopped
env_file:
- ./conf/common.env
- ./conf/evaluator.env
- ./conf/evaluator_upload.env
ports:
- 8089:8089
networks:
- default
- vmaas_default
depends_on:
- ve_database
- ve_listener
- platform_mock
ve_cluster:
command: /engine/entrypoint.sh cluster
container_name: vulnerability-engine-cluster
image: vulnerability-engine-app:latest
env_file:
- ./conf/common.env
- ./conf/database.env
depends_on:
- ve_database
profiles:
- cluster
networks:
default:
vmaas_default:
external: true
volumes:
vulnerability-engine-db-data:
ve-prometheus-data: