Initial commit for projmon branch

This commit is contained in:
2026-02-05 11:56:17 +01:00
parent a54c8e566b
commit 64e2cb2dee
12 changed files with 1373 additions and 26 deletions

View File

@@ -4,10 +4,12 @@ GIT_HASH=$(git rev-parse --short HEAD)
cp ../pyutils/utils.py ../upsmon/
cp ../pyutils/utils.py ../routermon/
cp ../pyutils/utils.py ../projmon/
docker compose build --build-arg BUILD_VER=${GIT_HASH}
rm ../upsmon/utils.py
rm ../routermon/utils.py
rm ../projmon/utils.py
docker compose up -d

View File

@@ -97,33 +97,33 @@ services:
- LOG_FILE=/tmp/routermon.log
- LOG_FILE_LVL=WARNING
- LOG_CLI_LVL=INFO
projmon:
build:
context: ../projmon
dockerfile: ../projmon/projmon.Dockerfile
args:
BUILD_VER:
container_name: edx-projmon
restart: unless-stopped
depends_on:
- influxdb3
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "5"
environment:
- INTERVAL=5
- INFLUXDB_TOKEN=apiv3_tbEpA8JmIRTfr8Wbw9npD79BcMlFsnV4_jhdt-CdUP53Mos61KBODGaggl2g5oKZZvZrZu3e6mpob6zorhEdbg
- INFLUXDB_URL=http://influxdb3:8181
- INFLUXDB_DATABASE=edelweiss30d
- PROJECTOR_IP=192.168.31.10
- PROJECTOR_USER=alberto
- PROJECTOR_PASSWORD=alberto
- LOG_FILE=/tmp/projmon.log
- LOG_FILE_LVL=WARNING
- LOG_CLI_LVL=INFO
# unifi-controller:
# image: lscr.io/linuxserver/unifi-controller:latest
# container_name: edx-unifi
# environment:
# - PUID=1000
# - PGID=1000
# - MEM_LIMIT=1024 #optional
# - MEM_STARTUP=1024 #optional
# volumes:
# - /var/lib/unifi:/config
# ports:
# - 8443:8443
# - 3478:3478/udp
# - 10001:10001/udp
# - 8080:8080
# - 1900:1900/udp #optional
# - 8843:8843 #optional
# - 8880:8880 #optional
# - 6789:6789 #optional
# - 5514:5514/udp #optional
# restart: unless-stopped
# logging:
# driver: "json-file"
# options:
# max-size: "10m"
# max-file: "5"
volumes:
grafana-data: