-
Notifications
You must be signed in to change notification settings - Fork 90
/
docker-compose.yml
450 lines (415 loc) · 12.4 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
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
---
services:
controller:
build:
context: .
dockerfile: Dockerfile-dalton
args:
- http_proxy=${http_proxy}
- https_proxy=${https_proxy}
- no_proxy=${no_proxy}
image: dalton:latest
container_name: dalton_controller
# Uncomment the next line to run the app in debug mode
# command: flask --app app run --port=8080 --host=0.0.0.0 --debug
depends_on:
- redis
environment:
- CONTROLLER_DEBUG=${CONTROLLER_DEBUG}
volumes:
- ./app:/opt/dalton/app
- ./rulesets:/opt/dalton/rulesets
- ./engine-configs:/opt/dalton/engine-configs
restart: always
nginx:
build:
context: .
dockerfile: Dockerfile-nginx
args:
- DALTON_EXTERNAL_PORT=${DALTON_EXTERNAL_PORT}
- DALTON_EXTERNAL_PORT_SSL=${DALTON_EXTERNAL_PORT_SSL}
image: nginx-dalton:latest
container_name: dalton_web
depends_on:
- controller
ports:
# external HTTP listen port
# to change, set DALTON_EXTERNAL_PORT in the '.env' file (NOT here)
# default DALTON_EXTERNAL_PORT value: 80
- "${DALTON_EXTERNAL_PORT}:80"
# uncomment below line to expose the external SSL/TLS listener
# to change port, set DALTON_EXTERNAL_PORT_SSL in the '.env' file (NOT here)
# default DALTON_EXTERNAL_PORT_SSL value: 443
# - "${DALTON_EXTERNAL_PORT_SSL}:443"
restart: always
redis:
image: redis:7.4.1
container_name: dalton_redis
restart: always
###########################
###### Dalton Agents ######
###########################
# To add a new, different, or another Agent for a
# particular Suricata or Snort version, just copy
# one of the existing specifications and change the
# version number(s) as necessary. For Suricata this
# is the "SURI_VERSION" arg value; for Snort this is
# the "SNORT_VERSION" arg value (and possibly DAQ_VERSION).
# The service and container name will also need to be
# changed to be unique.
###########################
##### Suricata Agents #####
###########################
# NOTE: Suricata version 4 supports Rust but is optional. To enable Rust
# support for a Suricata 4.x Agent, set the "ENABLE_RUST" arg
# to "--enable-rust". e.g.:
# - ENABLE_RUST=--enable-rust
# Suricata current (latest) from source
agent-suricata-current:
build:
context: ./dalton-agent
dockerfile: Dockerfiles/Dockerfile_suricata
args:
- SURI_VERSION=current
- http_proxy=${http_proxy}
- https_proxy=${https_proxy}
- no_proxy=${no_proxy}
image: suricata-current:latest
container_name: suricata-current
environment:
- AGENT_DEBUG=${AGENT_DEBUG}
restart: always
# Suricata 6.0.20 from source, with Rust support
agent-suricata-6.0.20:
build:
context: ./dalton-agent
dockerfile: Dockerfiles/Dockerfile_suricata
args:
- SURI_VERSION=6.0.20
- http_proxy=${http_proxy}
- https_proxy=${https_proxy}
- no_proxy=${no_proxy}
image: suricata-6.0.20:latest
container_name: suricata-6.0.20
environment:
- AGENT_DEBUG=${AGENT_DEBUG}
restart: always
# Suricata 5.0.6 from source, with Rust support
# agent-suricata-5.0.7:
# build:
# context: ./dalton-agent
# dockerfile: Dockerfiles/Dockerfile_suricata
# args:
# - SURI_VERSION=5.0.7
# - ENABLE_RUST=--enable-rust
# - http_proxy=${http_proxy}
# - https_proxy=${https_proxy}
# - no_proxy=${no_proxy}
# image: suricata-5.0.7:latest
# container_name: suricata-5.0.7
# environment:
# - AGENT_DEBUG=${AGENT_DEBUG}
# restart: always
# Suricata 4.1.10 from source, with Rust support
# agent-suricata-4.1.10:
# build:
# context: ./dalton-agent
# dockerfile: Dockerfiles/Dockerfile_suricata
# args:
# - SURI_VERSION=4.1.10
# - ENABLE_RUST=--enable-rust
# - http_proxy=${http_proxy}
# - https_proxy=${https_proxy}
# - no_proxy=${no_proxy}
# image: suricata-4.1.10:latest
# container_name: suricata-4.1.10
# environment:
# - AGENT_DEBUG=${AGENT_DEBUG}
# restart: always
# Suricata 4.0.7 from source
# agent-suricata-4.0.7:
# build:
# context: ./dalton-agent
# dockerfile: Dockerfiles/Dockerfile_suricata
# args:
# - SURI_VERSION=4.0.7
# - http_proxy=${http_proxy}
# - https_proxy=${https_proxy}
# - no_proxy=${no_proxy}
# image: suricata-4.0.7:latest
# container_name: suricata-4.0.7
# environment:
# - AGENT_DEBUG=${AGENT_DEBUG}
# restart: always
# Suricata 3.2.5 from source
# agent-suricata-3.2.5:
# build:
# context: ./dalton-agent
# dockerfile: Dockerfiles/Dockerfile_suricata
# args:
# - SURI_VERSION=3.2.5
# - http_proxy=${http_proxy}
# - https_proxy=${https_proxy}
# - no_proxy=${no_proxy}
# image: suricata-3.2.5:latest
# container_name: suricata-3.2.5
# environment:
# - AGENT_DEBUG=${AGENT_DEBUG}
# restart: always
# Suricata 3.1.4 from source
# agent-suricata-3.1.4:
# build:
# context: ./dalton-agent
# dockerfile: Dockerfiles/Dockerfile_suricata
# args:
# - SURI_VERSION=3.1.4
# - http_proxy=${http_proxy}
# - https_proxy=${https_proxy}
# - no_proxy=${no_proxy}
# image: suricata-3.1.4:latest
# container_name: suricata-3.1.4
# environment:
# - AGENT_DEBUG=${AGENT_DEBUG}
# restart: always
# Suricata 2.0.11 from source
# agent-suricata-2.0.11:
# build:
# context: ./dalton-agent
# dockerfile: Dockerfiles/Dockerfile_suricata
# args:
# - SURI_VERSION=2.0.11
# - http_proxy=${http_proxy}
# - https_proxy=${https_proxy}
# - no_proxy=${no_proxy}
# image: suricata-2.0.11:latest
# container_name: suricata-2.0.11
# environment:
# - AGENT_DEBUG=${AGENT_DEBUG}
# restart: always
# Suricata 2.0 from source
# agent-suricata-2.0:
# build:
# context: ./dalton-agent
# dockerfile: Dockerfiles/Dockerfile_suricata
# args:
# - SURI_VERSION=2.0
# - http_proxy=${http_proxy}
# - https_proxy=${https_proxy}
# - no_proxy=${no_proxy}
# image: suricata-2.0:latest
# container_name: suricata-2.0
# environment:
# - AGENT_DEBUG=${AGENT_DEBUG}
# restart: always
# Suricata 1.4.7 from source
# agent-suricata-1.4.7:
# build:
# context: ./dalton-agent
# dockerfile: Dockerfiles/Dockerfile_suricata
# args:
# - SURI_VERSION=1.4.7
# - http_proxy=${http_proxy}
# - https_proxy=${https_proxy}
# - no_proxy=${no_proxy}
# image: suricata-1.4.7:latest
# container_name: suricata-1.4.7
# environment:
# - AGENT_DEBUG=${AGENT_DEBUG}
# restart: always
# Suricata 1.3.6 from source
# agent-suricata-1.3.6:
# build:
# context: ./dalton-agent
# dockerfile: Dockerfiles/Dockerfile_suricata
# args:
# - SURI_VERSION=1.3.6
# - http_proxy=${http_proxy}
# - https_proxy=${https_proxy}
# - no_proxy=${no_proxy}
# image: suricata-1.3.6:latest
# container_name: suricata-1.3.6
# environment:
# - AGENT_DEBUG=${AGENT_DEBUG}
# restart: always
###########################
###### Snort Agents #######
###########################
#
# Note: Attempting to build Snort 2.9.0 and 2.9.0.x
# will fail because Autoconf can't find the dnet files.
# This was apparently fixed in Snort > 2.9.1 so if
# you really want a Snort 2.9.0 or 2.9.0.x, feel free
# to build it yourself. The Dalton Agent should work
# fine on it.
#
# Snort 2.9.20 from source
agent-snort-2.9.20:
build:
context: ./dalton-agent
dockerfile: Dockerfiles/Dockerfile_snort
args:
- SNORT_VERSION=2.9.20
- DAQ_VERSION=2.0.7
- http_proxy=${http_proxy}
- https_proxy=${https_proxy}
- no_proxy=${no_proxy}
image: snort-2.9.20:latest
container_name: snort-2.9.20
environment:
- AGENT_DEBUG=${AGENT_DEBUG}
restart: always
# Snort 2.9.18 from source
# agent-snort-2.9.18.1:
# build:
# context: ./dalton-agent
# dockerfile: Dockerfiles/Dockerfile_snort
# args:
# - SNORT_VERSION=2.9.18.1
# - DAQ_VERSION=2.0.7
# - http_proxy=${http_proxy}
# - https_proxy=${https_proxy}
# - no_proxy=${no_proxy}
# image: snort-2.9.18.1:latest
# container_name: snort-2.9.18.1
# environment:
# - AGENT_DEBUG=${AGENT_DEBUG}
# restart: always
# NOTE: Snort 2.9.16 is when DAQ version went to 2.0.7 (from 2.0.6).
# Snort 2.9.15.1 from source
# agent-snort-2.9.15.1:
# build:
# context: ./dalton-agent
# dockerfile: Dockerfiles/Dockerfile_snort
# args:
# - SNORT_VERSION=2.9.15.1
# - DAQ_VERSION=2.0.6
# - http_proxy=${http_proxy}
# - https_proxy=${https_proxy}
# - no_proxy=${no_proxy}
# image: snort-2.9.15.1:latest
# container_name: snort-2.9.15.1
# environment:
# - AGENT_DEBUG=${AGENT_DEBUG}
# restart: always
# Snort 2.9.14.1 from source
# agent-snort-2.9.14.1:
# build:
# context: ./dalton-agent
# dockerfile: Dockerfiles/Dockerfile_snort
# args:
# - SNORT_VERSION=2.9.14.1
# - DAQ_VERSION=2.0.6
# - http_proxy=${http_proxy}
# - https_proxy=${https_proxy}
# - no_proxy=${no_proxy}
# image: snort-2.9.14.1:latest
# container_name: snort-2.9.14.1
# environment:
# - AGENT_DEBUG=${AGENT_DEBUG}
# restart: always
# Snort 2.9.9.0 from source
# agent-snort-2.9.9.0:
# build:
# context: ./dalton-agent
# dockerfile: Dockerfiles/Dockerfile_snort
# args:
# - SNORT_VERSION=2.9.9.0
# - DAQ_VERSION=2.0.6
# - http_proxy=${http_proxy}
# - https_proxy=${https_proxy}
# - no_proxy=${no_proxy}
# image: snort-2.9.9.0:latest
# container_name: snort-2.9.9.0
# environment:
# - AGENT_DEBUG=${AGENT_DEBUG}
# restart: always
# Snort 2.9.8.3 from source
# agent-snort-2.9.8.3:
# build:
# context: ./dalton-agent
# dockerfile: Dockerfiles/Dockerfile_snort
# args:
# - SNORT_VERSION=2.9.8.3
# - DAQ_VERSION=2.0.6
# - http_proxy=${http_proxy}
# - https_proxy=${https_proxy}
# - no_proxy=${no_proxy}
# image: snort-2.9.8.3:latest
# container_name: snort-2.9.8.3
# environment:
# - AGENT_DEBUG=${AGENT_DEBUG}
# restart: always
# Snort 2.9.7.5 from source
# agent-snort-2.9.7.5:
# build:
# context: ./dalton-agent
# dockerfile: Dockerfiles/Dockerfile_snort
# args:
# - SNORT_VERSION=2.9.7.5
# - DAQ_VERSION=2.0.6
# - http_proxy=${http_proxy}
# - https_proxy=${https_proxy}
# - no_proxy=${no_proxy}
# image: snort-2.9.7.5:latest
# container_name: snort-2.9.7.5
# environment:
# - AGENT_DEBUG=${AGENT_DEBUG}
# restart: always
# Snort 2.9.3.1 from source
# agent-snort-2.9.3.1:
# build:
# context: ./dalton-agent
# dockerfile: Dockerfiles/Dockerfile_snort
# args:
# - SNORT_VERSION=2.9.3.1
# - DAQ_VERSION=2.0.6
# - http_proxy=${http_proxy}
# - https_proxy=${https_proxy}
# - no_proxy=${no_proxy}
# image: snort-2.9.3.1:latest
# container_name: snort-2.9.3.1
# environment:
# - AGENT_DEBUG=${AGENT_DEBUG}
# restart: always
# Snort 2.9.1.1 from source
# agent-snort-2.9.1.1:
# build:
# context: ./dalton-agent
# dockerfile: Dockerfiles/Dockerfile_snort
# args:
# - SNORT_VERSION=2.9.1.1
# - DAQ_VERSION=2.0.6
# - http_proxy=${http_proxy}
# - https_proxy=${https_proxy}
# - no_proxy=${no_proxy}
# image: snort-2.9.1.1:latest
# container_name: snort-2.9.1.1
# environment:
# - AGENT_DEBUG=${AGENT_DEBUG}
# restart: always
###########################
####### Zeek Agents #######
###########################
# Zeek current (latest) from source
agent-zeek-current:
build:
context: ./dalton-agent
dockerfile: Dockerfiles/Dockerfile_zeek
args:
- ZEEK_VERSION=7.0.1
image: zeek-current:latest
container_name: zeek-current
volumes:
- ./rulesets/zeek:/opt/dalton-agent/zeek_scripts:ro
restart: always
agent-zeek-6.0.6:
build:
context: ./dalton-agent
dockerfile: Dockerfiles/Dockerfile_zeek
args:
- ZEEK_VERSION=6.0.6
image: zeek-6.0.6
container_name: zeek-6.0.6
volumes:
- ./rulesets/zeek:/opt/dalton-agent/zeek_scripts:ro
restart: always