1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-21 17:56:53 +02:00

update maltrail

This commit is contained in:
kev 2024-03-04 17:54:13 +08:00
parent b99c8d4ed4
commit 059d877c48
5 changed files with 9 additions and 10 deletions

View File

@ -6,12 +6,13 @@ maltrail
```bash
$ docker compose up -d
$ curl http://127.0.0.1:8338
$ curl http://127.0.0.1:8338 # admin:changeme!
$ less data/etc/maltrail.csv
$ ping -c 1 136.161.101.53
$ nslookup morphed.ru
$ tail -f ./data/log/$(date +"%Y-%m-%d").log
$ tail -f ./data/server/log/$(date +"%Y-%m-%d").log
```
[1]: https://github.com/stamparm/maltrail

View File

@ -138,7 +138,7 @@ CHECK_HOST_DOMAINS false
SHOW_DEBUG false
# Directory used for log storage
LOG_DIR ./log/maltrail
LOG_DIR ./log
# HTTP(s) proxy address
#PROXY_ADDRESS http://192.168.5.101:8118
@ -147,4 +147,4 @@ LOG_DIR ./log/maltrail
DISABLE_CHECK_SUDO true
# Override default location for trail storage (~/.maltrail/trails.csv)
TRAILS_FILE ./var/maltrail.csv
TRAILS_FILE ./etc/maltrail.csv

View File

@ -5,21 +5,19 @@ services:
maltrail-server:
image: vimagick/maltrail
command: ./server.py -c etc/maltrail.conf
container_name: maltrail-server
volumes:
- ./data/etc:/opt/maltrail/etc
- ./data/log:/opt/maltrail/log
- ./data/var:/opt/maltrail/var
- ./data/server/log:/opt/maltrail/log
network_mode: host
restart: unless-stopped
maltrail-sensor:
image: vimagick/maltrail
command: ./sensor.py -c etc/maltrail.conf
container_name: maltrail-sensor
volumes:
- ./data/etc:/opt/maltrail/etc
- ./data/log:/opt/maltrail/log
- ./data/var:/opt/maltrail/var
- ./data/sensor/log:/opt/maltrail/log
network_mode: host
depends_on:
- maltrail-server
restart: unless-stopped