Upgrade to influx2. Switch to zigbee2mqtt
This commit is contained in:
parent
58b65895d8
commit
a71bd0f871
@ -113,47 +113,52 @@ services:
|
|||||||
traefik.http.routers.grafana.tls.certResolver: le
|
traefik.http.routers.grafana.tls.certResolver: le
|
||||||
|
|
||||||
influx:
|
influx:
|
||||||
image: influxdb:1.8
|
image: influxdb:2.0
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
|
||||||
- ./influx:/var/lib/influxdb
|
|
||||||
- /etc/timezone:/etc/timezone
|
|
||||||
# Only needed during initial setup
|
|
||||||
# environment:
|
|
||||||
# INFLUXDB_DB: hass
|
|
||||||
# INFLUXDB_USER: hass
|
|
||||||
# INFLUXDB_USER_PASSWORD: hass
|
|
||||||
|
|
||||||
|
|
||||||
# Devices
|
|
||||||
deconz:
|
|
||||||
image: marthoc/deconz:amd64-2.05.77
|
|
||||||
restart: always
|
|
||||||
devices:
|
|
||||||
- /dev/conbee:/dev/ttyUSB0
|
|
||||||
volumes:
|
|
||||||
- ./deconz:/root/.local/share/dresden-elektronik/deCONZ
|
|
||||||
- ./deconz-otau:/root/otau
|
|
||||||
- /etc/timezone:/etc/timezone
|
|
||||||
networks:
|
networks:
|
||||||
web:
|
|
||||||
default:
|
default:
|
||||||
environment:
|
web:
|
||||||
DECONZ_VNC_MODE: 1
|
volumes:
|
||||||
DECONZ_VNC_PASSWORD: secret
|
- /etc/timezone:/etc/timezone
|
||||||
DEBUG_OTAU: 1
|
# - ./influx:/var/lib/influxdb
|
||||||
DECONZ_WEB_PORT: 8081
|
- ./influx2:/var/lib/influxdb2
|
||||||
ports:
|
# environment:
|
||||||
- 8081:8081
|
# Only needed if upgrading from influx 1
|
||||||
|
# DOCKER_INFLUXDB_INIT_MODE: upgrade
|
||||||
|
# Only needed for initial setup
|
||||||
|
# DOCKER_INFLUXDB_INIT_USERNAME: hass
|
||||||
|
# DOCKER_INFLUXDB_INIT_PASSWORD: hasspassword
|
||||||
|
# DOCKER_INFLUXDB_INIT_ORG: hass
|
||||||
|
# DOCKER_INFLUXDB_INIT_BUCKET: hass
|
||||||
labels:
|
labels:
|
||||||
traefik.enable: true
|
traefik.enable: true
|
||||||
traefik.docker.network: web
|
traefik.docker.network: web
|
||||||
traefik.http.services.deconz.loadbalancer.server.port: 8081
|
traefik.http.routers.influx.rule: HOST(`influx.${HASS_ROOT}`)
|
||||||
traefik.http.routers.deconz.rule: HOST(`deconz.${HASS_ROOT}`)
|
traefik.http.routers.influx.middlewares: auth@file
|
||||||
traefik.http.routers.deconz.middlewares: auth@file
|
traefik.http.routers.influx.tls.certResolver: le
|
||||||
traefik.http.routers.deconz.tls.certResolver: le
|
|
||||||
healthcheck:
|
|
||||||
test: curl http://localhost:5900 || exit 1
|
# Devices
|
||||||
|
z2m:
|
||||||
|
image: koenkk/zigbee2mqtt:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
web:
|
||||||
|
default:
|
||||||
|
devices:
|
||||||
|
- /dev/zzh:/dev/ttyUSB0
|
||||||
|
volumes:
|
||||||
|
- ./z2m:/app/data
|
||||||
|
- /etc/timezone:/etc/timezone
|
||||||
|
environment:
|
||||||
|
TZ: Europe/Stockholm
|
||||||
|
labels:
|
||||||
|
traefik.enable: true
|
||||||
|
traefik.docker.network: web
|
||||||
|
traefik.http.services.z2m.loadbalancer.server.port: 8080
|
||||||
|
traefik.http.routers.z2m.rule: HOST(`z2m.${HASS_ROOT}`)
|
||||||
|
traefik.http.routers.z2m.middlewares: auth@file
|
||||||
|
traefik.http.routers.z2m.tls.certResolver: le
|
||||||
|
|
||||||
# mysensors:
|
# mysensors:
|
||||||
# rflink:
|
# rflink:
|
||||||
@ -176,3 +181,5 @@ services:
|
|||||||
- /dev/gsmmodem:/dev/mobile
|
- /dev/gsmmodem:/dev/mobile
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "wget", "-O", "-", "localhost:5000/signal"]
|
test: ["CMD", "wget", "-O", "-", "localhost:5000/signal"]
|
||||||
|
labels:
|
||||||
|
autoheal: "true"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user