-
Source: PiMyLifeUp
Documentation: Pi.Alert
-
Install docker: tutorial
-
sudo mkdir -p /opt/stacks/pialert
cd /opt/stacks/pialert
-
sudo nano compose.yaml
-
version: "3"
services:
pialert:
container_name: pialert
image: "jokobsk/pi.alert:latest"
network_mode: "host"
restart: unless-stopped
volumes:
- ./data/config:/home/pi/pialert/config
- ./data/db:/home/pi/pialert/db
- ./data/logs:/home/pi/pialert/front/log
environment:
- TZ=Europe/Berlin
- PORT=20211
-
docker compose up -d
-
sudo nano /opt/stacks/pialert/data/config/pialert.conf
-
change to
SCAN_SUBNETS=['192.168.1.0/24 --interface=eth1','192.168.6.1/24 --interface=eth0']
-
go to web interface
-
Update
cd /opt/stacks/pialert
docker compose pull
docker compose up -d