-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
31 lines (30 loc) · 1.01 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
version: '3.8'
services:
port_scanner:
build: .
container_name: port_scanner
volumes:
# Mount the local scanner code directory into the container at /scanner
- ./scanner:/scanner
# Mount a host directory to store scanner results (logs and reports)
- /var/log/net-delta-monitor/:/scanner/results
# Synchronize container timezone with the host system
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
environment:
# Set the scanning interval in seconds
- INTERVAL=${INTERVAL}
# MQTT broker hostname or container name if in the same compose network
- MQTT_BROKER=${MQTT_BROKER}
# MQTT broker port
- MQTT_PORT=${MQTT_PORT}
# MQTT topic prefix
- MQTT_TOPIC_PREFIX=${MQTT_TOPIC_PREFIX}
# Optional Telegram Bot settings
- TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN}
- TELEGRAM_CHAT_ID=${TELEGRAM_CHAT_ID}
network_mode: host
cap_add:
- NET_RAW
- NET_ADMIN
restart: always