2026-05-11 21:36:10 +02:00
|
|
|
services:
|
|
|
|
|
zigbee2mqtt:
|
2026-05-27 15:10:48 +02:00
|
|
|
# host network: mosquitto runs with network_mode: host on chelsty-infra,
|
|
|
|
|
# so zigbee2mqtt must also use host networking to reach localhost:1883.
|
|
|
|
|
network_mode: host
|
2026-05-11 21:36:10 +02:00
|
|
|
volumes:
|
2026-05-27 15:10:48 +02:00
|
|
|
# configuration.yaml lives in the runtime config dir (not in Git).
|
|
|
|
|
# On chelsty-infra: /opt/homelab/config/zigbee2mqtt/configuration.yaml
|
|
|
|
|
- /opt/homelab/config/zigbee2mqtt/configuration.yaml:/app/data/configuration.yaml:ro
|
2026-05-11 21:36:10 +02:00
|
|
|
environment:
|
2026-05-27 15:10:48 +02:00
|
|
|
- TZ=Europe/Warsaw
|
2026-05-11 21:36:10 +02:00
|
|
|
healthcheck:
|
2026-05-27 15:10:48 +02:00
|
|
|
test: ["CMD-SHELL", "wget -qO- http://localhost:8080 > /dev/null 2>&1 || exit 1"]
|
|
|
|
|
interval: 30s
|
|
|
|
|
timeout: 10s
|
2026-05-11 21:36:10 +02:00
|
|
|
retries: 3
|
2026-05-27 15:10:48 +02:00
|
|
|
start_period: 60s
|