configure all the things
This commit is contained in:
parent
9ffa0b46fb
commit
ac283a1f35
2
.env
2
.env
|
@ -1,5 +1,5 @@
|
||||||
MQTT_PORT=1883
|
MQTT_PORT=1883
|
||||||
INFLUX_PORT=8086
|
INFLUX_PORT=8088
|
||||||
GRAFANA_PORT=3002
|
GRAFANA_PORT=3002
|
||||||
ZIGBEE_MQTT_PORT=1884
|
ZIGBEE_MQTT_PORT=1884
|
||||||
HOST_IP=192.168.222.123
|
HOST_IP=192.168.222.123
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
password_file /mosquitto/config/users
|
||||||
|
port 8883
|
||||||
|
|
||||||
persistence true
|
persistence true
|
||||||
persistence_location /mosquitto/data/
|
persistence_location /mosquitto/data
|
||||||
log_dest file /mosquitto/log/mosquitto.log
|
log_dest file /mosquitto/log/mosquitto.log
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
zigbee:$7$101$IBQ2q1IxkCamOv8W$pxtAYGwyboq1kDZfiLPgJnoViwNHQ2MriDMeASrx2IxsXh0erfROm7Vm68CAcKuQtJ2aogY1H4Y/ubzwqHerfg==
|
||||||
|
telegraf:$7$101$wum+lK0/6s2xMtyF$QXx4+s0avZ9e4AqONFFb6r2hrWPpHK8G+N1LOTgkTzloyXbTXujw9h05O4Ww10qI3UYVChNsttd72wp87Gu11A==
|
|
@ -125,7 +125,7 @@
|
||||||
## urls will be written to each interval.
|
## urls will be written to each interval.
|
||||||
# urls = ["unix:///var/run/influxdb.sock"]
|
# urls = ["unix:///var/run/influxdb.sock"]
|
||||||
# urls = ["udp://127.0.0.1:8089"]
|
# urls = ["udp://127.0.0.1:8089"]
|
||||||
# urls = ["http://127.0.0.1:8086"]
|
urls = ["http://influxdb:8086"]
|
||||||
|
|
||||||
## The target database for metrics; will be created as needed.
|
## The target database for metrics; will be created as needed.
|
||||||
## For UDP url endpoint database needs to be configured on server side.
|
## For UDP url endpoint database needs to be configured on server side.
|
||||||
|
|
|
@ -80,10 +80,11 @@
|
||||||
## Multiple URLs can be specified for a single cluster, only ONE of the
|
## Multiple URLs can be specified for a single cluster, only ONE of the
|
||||||
## urls will be written to each interval.
|
## urls will be written to each interval.
|
||||||
## ex: urls = ["https://us-west-2-1.aws.cloud2.influxdata.com"]
|
## ex: urls = ["https://us-west-2-1.aws.cloud2.influxdata.com"]
|
||||||
urls = ["http://192.168.222.123:8086"]
|
urls = ["http://influxdb:8086"]
|
||||||
|
|
||||||
## Token for authentication.
|
## Token for authentication.
|
||||||
token = "8n40XpIPBzacUIL9n5gfACuiMURhRRPs5An_-dpAjm7CkDhsEu7ZbEwYLhJXK0d0S040awx9ka0LhksNhH3K_w=="
|
token = "8n40XpIPBzacUIL9n5gfACuiMURhRRPs5An_-dpAjm7CkDhsEu7ZbEwYLhJXK0d0S040awx9ka0LhksNhH3K_w=="
|
||||||
|
# token = "V7eZ4QpALEMBLykdrmcLG2s8fGQeODQ6_YeU9zxABgCuDssZDF9nj04cJdChqYRE1Z6d8H-hfdQ9lrX_31Y5yA=="
|
||||||
|
|
||||||
## Organization is the name of the organization you wish to write to; must exist.
|
## Organization is the name of the organization you wish to write to; must exist.
|
||||||
organization = "odroid"
|
organization = "odroid"
|
||||||
|
|
|
@ -38,9 +38,10 @@
|
||||||
## If set to true, do no set the "host" tag in the telegraf agent.
|
## If set to true, do no set the "host" tag in the telegraf agent.
|
||||||
omit_hostname = false
|
omit_hostname = false
|
||||||
[[outputs.influxdb_v2]]
|
[[outputs.influxdb_v2]]
|
||||||
urls = ["http://192.168.222.123:8086"]
|
urls = ["http://influxdb:8086"]
|
||||||
|
|
||||||
token = "ogr1bEXmLbWetYVTcQpIxwWT23pXgJAYiOeLDYdylTQBvPT9prW--yC_oKJvX3xFl5ZYtB1B2nTzysvo8a6ClQ=="
|
# token = "2f3MkMT2_NFQXKJEt02jnm4zUiDTwObceXQ1Vth7Tv-7KxTLoLcBvlkKBrcVZMfPlYzNkV27-cu9crf7hbYpBA=="
|
||||||
|
token = "I_J7ynLoO9yWcLx1YrB0QntORdJtdoDLHun9umnLs62MHK_31GniQ032edP6G01Q6We9j7UH0pFP-IG_-kPh7A=="
|
||||||
|
|
||||||
## Organization is the name of the organization you wish to write to; must exist.
|
## Organization is the name of the organization you wish to write to; must exist.
|
||||||
organization = "odroid"
|
organization = "odroid"
|
||||||
|
@ -56,7 +57,7 @@
|
||||||
## example: servers = ["tcp://localhost:1883"]
|
## example: servers = ["tcp://localhost:1883"]
|
||||||
## servers = ["ssl://localhost:1883"]
|
## servers = ["ssl://localhost:1883"]
|
||||||
## servers = ["ws://localhost:1883"]
|
## servers = ["ws://localhost:1883"]
|
||||||
servers = ["tcp://127.0.0.1:1883"]
|
servers = ["tcp://mqtt:1883"]
|
||||||
username = "telegraf"
|
username = "telegraf"
|
||||||
password = "iaveexieyuz0Faewa7rieghoyaeseesh"
|
password = "iaveexieyuz0Faewa7rieghoyaeseesh"
|
||||||
|
|
||||||
|
|
|
@ -16,23 +16,23 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- GF_SECURITY_ADMIN_PASSWORD=secret
|
- GF_SECURITY_ADMIN_PASSWORD=secret
|
||||||
- GF_SERVER_ROOT_URL=http://${HOST_IP}:${GRAFANA_PORT}/
|
- GF_SERVER_ROOT_URL=http://${HOST_IP}:${GRAFANA_PORT}/
|
||||||
- GF_RENDERING_SERVER_URL=http://renderer:8081/render
|
# - GF_RENDERING_SERVER_URL=http://renderer:8081/render
|
||||||
- GF_RENDERING_CALLBACK_URL=http://grafana:3000/
|
# - GF_RENDERING_CALLBACK_URL=http://grafana:3000/
|
||||||
- GF_LOG_FILTERS=rendering:debug
|
- GF_LOG_FILTERS=rendering:debug
|
||||||
- GF_INSTALL_PLUGINS=ryantxu-ajax-panel,grafana-piechart-panel
|
- GF_INSTALL_PLUGINS=ryantxu-ajax-panel,grafana-piechart-panel
|
||||||
|
|
||||||
renderer:
|
# renderer:
|
||||||
image: grafana/grafana-image-renderer:latest
|
# image: grafana/grafana-image-renderer:latest
|
||||||
|
|
||||||
prometheus:
|
prometheus:
|
||||||
image: prom/prometheus:latest
|
image: prom/prometheus:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./config/prometheus.yml:/etc/prometheus/prometheus.yml
|
- ./config/prometheus/prometheus.yml:/prometheus/prometheus.yml
|
||||||
- ${DATA_DIR}/prometheus/data:/prometheus
|
- ${DATA_DIR}/prometheus/data:/prometheus/data
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "host.docker.internal:host-gateway"
|
- "host.docker.internal:host-gateway"
|
||||||
args:
|
command:
|
||||||
- '--storage.tsdb.retention.time=100d'
|
- '--storage.tsdb.retention.time=100d'
|
||||||
|
|
||||||
influxdb:
|
influxdb:
|
||||||
|
@ -41,10 +41,10 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "${INFLUX_PORT}:8086"
|
- "${INFLUX_PORT}:8086"
|
||||||
volumes:
|
volumes:
|
||||||
- ${DATA_DIR}/influxdb:/var/lib/influxdb
|
- ${DATA_DIR}/influxdb:/var/lib/influxdb2
|
||||||
|
|
||||||
timescaledb:
|
timescaledb:
|
||||||
image: timescale/timescaledb-ha:pg14-latest
|
image: timescale/timescaledb:latest-pg14
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_PASSWORD: ${TIMESCALE_PASSWORD}
|
POSTGRES_PASSWORD: ${TIMESCALE_PASSWORD}
|
||||||
|
@ -55,7 +55,7 @@ services:
|
||||||
image: eclipse-mosquitto:latest
|
image: eclipse-mosquitto:latest
|
||||||
user: "1000"
|
user: "1000"
|
||||||
ports:
|
ports:
|
||||||
- "${MQTT_PORT}:1883"
|
- "${MQTT_PORT}:8883"
|
||||||
volumes:
|
volumes:
|
||||||
- ./config/mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf
|
- ./config/mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf
|
||||||
- ./config/mosquitto/users:/mosquitto/config/users
|
- ./config/mosquitto/users:/mosquitto/config/users
|
||||||
|
@ -63,18 +63,19 @@ services:
|
||||||
- ${DATA_DIR}/mosquitto/log:/mosquitto/log
|
- ${DATA_DIR}/mosquitto/log:/mosquitto/log
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
zigbee2mqtt:
|
# The dongle does not actually work with odroid
|
||||||
restart: unless-stopped
|
# zigbee2mqtt:
|
||||||
image: koenkk/zigbee2mqtt
|
# restart: unless-stopped
|
||||||
volumes:
|
# image: koenkk/zigbee2mqtt
|
||||||
- ${DATA_DIR}/zigbee2mqtt-data:/app/data
|
# volumes:
|
||||||
- /run/udev:/run/udev:ro
|
# - ${DATA_DIR}/zigbee2mqtt-data:/app/data
|
||||||
ports:
|
# - /run/udev:/run/udev:ro
|
||||||
- ${ZIGBEE_MQTT_PORT}:8080
|
# ports:
|
||||||
environment:
|
# - ${ZIGBEE_MQTT_PORT}:8080
|
||||||
- TZ=Europe/Berlin
|
# environment:
|
||||||
devices:
|
# - TZ=Europe/Berlin
|
||||||
- /dev/ttyUSB0:/dev/ttyUSB0
|
# devices:
|
||||||
|
# - /dev/ttyUSB0:/dev/ttyUSB0
|
||||||
|
|
||||||
telegraf:
|
telegraf:
|
||||||
image: telegraf
|
image: telegraf
|
||||||
|
|
Loading…
Reference in New Issue
Block a user