forked from bgulla/apcupsd-influxdb-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
27 lines (26 loc) · 1.19 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
version: '3'
services:
apcupsd-influxdb-exporter:
image: napalmzrpi/apcupsd-influxdb-exporter:latest
container_name: apcupsd-influxdb-exporter
restart: always
environment:
TZ: Europe/Rome
HOSTNAME: unraid # host you want to show up in influxdb, optional defaults to apcupsd-influxdb-exporter
WATTS: 1500 # if your ups doesn't have NOMPOWER, set this to be the rated max power, if you do have NOMPOWER, don't set this variable
APCUPSD_HOST: localhost # host running apcupsd, optional, defaults to localhost
UPS_ALIAS: SmartUPS750 # optional, defaults to none
VERBOSE: "false" # optional, defaults to false
# Influxdb version choose
INFLUXDB_VERSION: 2
# Influxdb v1
INFLUXDB1_HOST: localhost # host running influxdb
INFLUXDB1_PORT: 8086 # optional, defaults to 8086
INFLUXDB1_USER: username # optional, defaults to empty
INFLUXDB1_PASSWORD: password # optional, defaults to empty
INFLUXDB1_DATABASE: apcupsd # db name for influxdb. optional, defaults to apcupsd
# Influxdb v2
INFLUXDB2_URL: http://localhost:8086
INFLUXDB2_TOKEN: my-token
INFLUXDB2_ORG: my-org
INFLUXDB2_BUCKET: my-bucket