117 lines
2.7 KiB
YAML
117 lines
2.7 KiB
YAML
services:
|
|
influxdb3:
|
|
image: influxdb:3-core
|
|
container_name: edx-influxdb3
|
|
restart: unless-stopped
|
|
ports:
|
|
- 8181:8181
|
|
command:
|
|
- influxdb3
|
|
- serve
|
|
- --node-id=influxb-node0
|
|
- --object-store=file
|
|
- --data-dir=/var/lib/influxdb3
|
|
volumes:
|
|
- type: volume
|
|
source: influxdb3-data
|
|
target: /var/lib/influxdb3
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "5"
|
|
|
|
grafana:
|
|
image: grafana/grafana:latest
|
|
container_name: edx-grafana
|
|
restart: unless-stopped
|
|
ports:
|
|
- 8085:3000
|
|
volumes:
|
|
- grafana-data:/var/lib/grafana
|
|
depends_on:
|
|
- influxdb3
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "5"
|
|
|
|
upsmon:
|
|
image: upsmon:influx3
|
|
container_name: edx-upsmon
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- influxdb3
|
|
devices:
|
|
- /dev/ttyS0:/dev/ttyS0
|
|
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=edelweiss
|
|
- PORT=/dev/ttyS0
|
|
- BAUD=2400
|
|
- LOG_FILE=/tmp/upsmon.log
|
|
- LOG_FILE_LVL=WARNING
|
|
- LOG_CLI_LVL=INFO
|
|
|
|
routermon:
|
|
image: routermon:influx3
|
|
container_name: edx-routermon
|
|
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=edelweiss
|
|
- 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
|
|
|
|
# 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:
|
|
influxdb3-data:
|