homelab-codex-ws/hosts/chelsty-infra/runtime/zigbee2mqtt
Oskar Kapala b3912fe0ce zigbee2mqtt: use extra_hosts host-gateway instead of network_mode: host
docker-compose v1 cannot clear the ports list from the base compose with
ports: [] in an override, so network_mode: host caused InvalidArgument.

Use extra_hosts with host-gateway instead: maps 'mosquitto' hostname to the
Docker bridge gateway IP so mqtt://mosquitto:1883 reaches the host-networked
mosquitto process from within the bridge-networked z2m container.
Requires Docker 20.10+ (present on chelsty-infra).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-27 15:12:33 +02:00
..
configuration.yaml refactor(hosts): split chelsty monolith into chelsty-ha and chelsty-infra 2026-05-20 14:20:49 +02:00
docker-compose.override.yml zigbee2mqtt: use extra_hosts host-gateway instead of network_mode: host 2026-05-27 15:12:33 +02:00