forked from RedHatInsights/vulnerability-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
208 lines (193 loc) · 5.14 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
version: '3'
services:
ve_database:
container_name: vulnerability-engine-database
build:
context: ./
dockerfile: ./database/Dockerfile.centos
image: vulnerability-engine-database:latest
restart: unless-stopped
shm_size: '256mb'
env_file:
- ./conf/common.env
- ./conf/database.env
ports:
- 15432:5432
volumes:
- vulnerability-engine-db-data:/var/lib/pgsql/data
ve_evaluator_recalc:
command: /engine/entrypoint.sh evaluator
container_name: vulnerability-engine-evaluator-recalc
build:
context: ./
dockerfile: ./Dockerfile
args:
PIPENV_CHECK: "${PIPENV_CHECK:-1}"
image: vulnerability-engine-app:latest
restart: unless-stopped
env_file:
- ./conf/common.env
- ./conf/evaluator.env
- ./conf/evaluator_recalc.env
ports:
- 8084:8085
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:
- 8085:8085
depends_on:
- ve_database
- 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:
- 8086:8086
depends_on:
- ve_database
- platform_mock
ve_manager:
command: /engine/entrypoint.sh manager
container_name: vulnerability-engine-manager
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:
PIPENV_CHECK: "${PIPENV_CHECK:-1}"
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
restart: unless-stopped
env_file:
- ./conf/common.env
- ./conf/vmaas-sync.env
ports:
- 8200:8000
- 8087:8087
depends_on:
- ve_database
- platform_mock
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
logging:
driver: none
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
logging:
driver: none
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
depends_on:
- ve_database
ve_advisor_listener:
command: /engine/entrypoint.sh advisor-listener
container_name: vulnerability-engine-advisor-listener
image: vulnerability-engine-app:latest
restart: unless-stopped
env_file:
- ./conf/common.env
- ./conf/advisor_listener.env
depends_on:
- ve_database
- platform_mock
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
volumes:
vulnerability-engine-db-data:
ve-prometheus-data: