updated routermon e upsmon, ora funzionano

This commit is contained in:
2025-05-30 23:26:22 +02:00
parent 27170ef12a
commit 5f34f3169a
6 changed files with 140 additions and 38 deletions

View File

@@ -0,0 +1,70 @@
services:
influxdb2:
image: influxdb:2-alpine
container_name: edx-influxdb
restart: unless-stopped
ports:
- 8086:8086
volumes:
- type: volume
source: influxdb2-data
target: /var/lib/influxdb2
- type: volume
source: influxdb2-config
target: /etc/influxdb2
grafana:
image: grafana/grafana:latest
container_name: edx-grafana
restart: unless-stopped
ports:
- 8085:3000
volumes:
- grafana-data:/var/lib/grafana
depends_on:
- influxdb2
upsmon:
image: upsmon:latest
container_name: edx-upsmon
restart: unless-stopped
depends_on:
- influxdb2
devices:
- /dev/ttyUSB1:/dev/ttyUSB1
environment:
- INTERVAL=5
- INFLUXDB_TOKEN=b46xoZRVsQvyGnv8TVMmTDmxT8LZZsi7O_u776MHIxiE9CPh7yHi0iHMOerUT5o1y65MMxeKKA7S-ijQ3elK-g==
- INFLUXDB_URL=http://influxdb2:8086
- INFLUXDB_ORG=edelweiss
- INFLUXDB_BUCKET=theatre
- PORT=/dev/ttyUSB1
- BAUD=2400
- LOG_FILE=/tmp/upsmon.log
- LOG_FILE_LVL=WARNING
- LOG_CLI_LVL=INFO
routermon:
image: routermon:latest
container_name: edx-routermon
restart: unless-stopped
depends_on:
- influxdb2
environment:
- INTERVAL=5
- INFLUXDB_TOKEN=b46xoZRVsQvyGnv8TVMmTDmxT8LZZsi7O_u776MHIxiE9CPh7yHi0iHMOerUT5o1y65MMxeKKA7S-ijQ3elK-g==
- INFLUXDB_URL=http://influxdb2:8086
- INFLUXDB_ORG=edelweiss
- INFLUXDB_BUCKET=theatre
- MIKROTIK_IP=192.168.31.1
- MIKROTIK_USER=service
- MIKROTIK_PASSWORD=dataservice
- LOG_FILE=/tmp/routermon.log
- LOG_FILE_LVL=WARNING
- LOG_CLI_LVL=INFO
volumes:
influxdb2-data:
influxdb2-config:
grafana-data: