zigbee2mqtt: enable zigbee2mqtt on swarm

A network zigbee controller makes zigbee2mqtt swarm-compatible, as it does not rely on specific underlying hardware anymore :)
This commit is contained in:
2025-11-13 19:19:24 +01:00
parent a9932d4673
commit 5ae25bce52
3 changed files with 6 additions and 2 deletions

View File

@@ -0,0 +1,32 @@
services:
zigbee2mqtt:
container_name: zigbee2mqtt
restart: unless-stopped
image: koenkk/zigbee2mqtt:2.6.2
networks:
- default
- proxy
volumes:
- data:/app/data
- /run/udev:/run/udev:ro
ports:
- "8080"
environment:
- TZ=Europe/Paris
labels:
- "traefik.enable=true"
- "traefik.http.routers.zigbee2mqtt.rule=Host(`zigbee2mqtt.lan`)"
- "traefik.http.services.zigbee2mqtt.loadbalancer.server.port=8080"
volumes:
data:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/app/zigbee2mqtt/data'
networks:
proxy:
external: true
name: proxy