Use zigbee2mqtt and mqtt broker insead of deconz
This commit is contained in:
parent
4d63465405
commit
92ef21b414
2 changed files with 39 additions and 20 deletions
|
@ -16,30 +16,41 @@ services:
|
||||||
- "traefik.http.services.hassi.loadbalancer.server.port=8123"
|
- "traefik.http.services.hassi.loadbalancer.server.port=8123"
|
||||||
- "docker.group=smartHome"
|
- "docker.group=smartHome"
|
||||||
|
|
||||||
deconz:
|
mqttbroker:
|
||||||
image: deconzcommunity/deconz:stable
|
image: eclipse-mosquitto:2.0
|
||||||
network_mode: host
|
|
||||||
privileged: true
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
network_mode: host
|
||||||
|
expose:
|
||||||
|
- 1883
|
||||||
|
#ports:
|
||||||
|
# - 1883:1883 # mqtt over TCP
|
||||||
|
# - 9001:9001 # Websockets
|
||||||
volumes:
|
volumes:
|
||||||
- ${VOLUMES_PATH}/deCONZ:/opt/deCONZ
|
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- ${VOLUMES_PATH}/smartHome/mosquitto/data:/mosquitto/data
|
||||||
devices:
|
- ${VOLUMES_PATH}/smartHome/mosquitto/log:/mosquitto/log
|
||||||
- /dev/ttyACM0
|
|
||||||
|
|
||||||
|
zigbee2mqtt:
|
||||||
|
restart: unless-stopped
|
||||||
|
image: koenkk/zigbee2mqtt
|
||||||
|
volumes:
|
||||||
|
- ${VOLUMES_PATH}/smartHome/zigbee2mqtt:/app/data
|
||||||
|
- /run/udev:/run/udev:ro
|
||||||
environment:
|
environment:
|
||||||
- DECONZ_DEVICE=/dev/ttyACM0
|
|
||||||
- DECONZ_WEB_PORT=8080
|
|
||||||
- DECONZ_WS_PORT=8443
|
|
||||||
- DEBUG_INFO=1
|
|
||||||
- DEBUG_APS=0
|
|
||||||
- DEBUG_ZCL=0
|
|
||||||
- DEBUG_ZDP=0
|
|
||||||
- DEBUG_OTAU=0
|
|
||||||
- TZ=Europe/Berlin
|
- TZ=Europe/Berlin
|
||||||
- UDEV=1
|
devices:
|
||||||
|
- /dev/ttyACM0:/dev/ttyACM0
|
||||||
|
networks:
|
||||||
|
- web
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.deconz.rule=Host(`deconz.${DOMAIN}`)"
|
- "traefik.http.routers.zigbee2mqtt.rule=Host(`zigbee2mqtt.${DOMAIN}`)"
|
||||||
- "traefik.http.routers.deconz.entrypoints=web"
|
- "traefik.http.routers.zigbee2mqtt.entrypoints=web"
|
||||||
- "traefik.http.services.deconz.loadbalancer.server.port=8080"
|
- "traefik.http.services.zigbee2mqtt.loadbalancer.server.port=8080"
|
||||||
- "docker.group=smartHome"
|
- "docker.group=smartHome"
|
||||||
|
|
||||||
|
|
||||||
|
networks:
|
||||||
|
web:
|
||||||
|
external: true
|
||||||
|
|
8
smartHome/mosquitto.conf
Normal file
8
smartHome/mosquitto.conf
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
persistence true
|
||||||
|
persistence_location /mosquitto/data
|
||||||
|
log_dest file /mosquitto/log/mosquitto.log
|
||||||
|
listener 1883
|
||||||
|
allow_anonymous true
|
||||||
|
|
||||||
|
listener 9001
|
||||||
|
protocol websockets
|
Loading…
Reference in a new issue