-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
61 lines (57 loc) · 1.54 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
version: "3"
volumes:
snort_data:
services:
snort:
build:
context: ./
## Please uncomment if you'd prefer to use the locally downloaded rule instead of the downloaded version
# dockerfile: snort/offline.Dockerfile
# args:
# RULE_FILENAME: snortrules-snapshot-31470.tar.gz
network_mode: host
restart: always
environment:
- NETWORK_INTERFACE=eth0
volumes:
- ./snort/snort.lua:/usr/local/etc/snort/snort.lua:ro
- snort_data:/var/log/snort:rw
deploy:
resources:
limits:
cpus: '1'
memory: 512M
reservations:
cpus: '0.7'
memory: 256M
###########################
# Note #
###########################
# String/text `<machine-id>` will be replaced with content from /etc/machine-id
# String/text `<sensor-id>` will be replaced with content from SENSOR_ID env var
#
snort-parser:
image: mataelang/snort3-parser:1.1
depends_on:
- snort
restart: always
environment:
- MQTT_HOST=192.168.1.1
- MQTT_PORT=1883
- MQTT_USERNAME=mataelang
- MQTT_PASSWORD=mataelang
- MAX_PCAP_FILES=5
- SENSOR_ID=<machine-id>
- MQTT_TOPIC=mataelang/sensor/v3/<sensor-id>
- SNORT_ALERT_FILE_PATH=/var/log/snort/alert_json.txt
volumes:
- /etc/machine-id:/etc/machine-id:ro
- snort_data:/var/log/snort:rw
deploy:
resources:
limits:
cpus: '0.25'
memory: 25M
reservations:
cpus: '0.15'
memory: 15M