From 61e07f4318bf88a19345de312db29a59a0709b49 Mon Sep 17 00:00:00 2001 From: Oskar Kapala Date: Wed, 27 May 2026 15:11:42 +0200 Subject: [PATCH] zigbee2mqtt override: clear ports list for docker-compose v1 host network compat docker-compose v1 (1.29.2 on chelsty-infra) raises InvalidArgument when network_mode: host is combined with port_bindings from the base compose file. Add ports: [] in the override to clear the base ports list. Co-Authored-By: Claude Sonnet 4.6 --- .../runtime/zigbee2mqtt/docker-compose.override.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hosts/chelsty-infra/runtime/zigbee2mqtt/docker-compose.override.yml b/hosts/chelsty-infra/runtime/zigbee2mqtt/docker-compose.override.yml index 4210d5d..09335ad 100644 --- a/hosts/chelsty-infra/runtime/zigbee2mqtt/docker-compose.override.yml +++ b/hosts/chelsty-infra/runtime/zigbee2mqtt/docker-compose.override.yml @@ -3,6 +3,9 @@ services: # 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 + # Clear the ports list from the base compose — host networking makes port + # mappings meaningless and docker-compose v1 errors if both are present. + ports: [] volumes: # configuration.yaml lives in the runtime config dir (not in Git). # On chelsty-infra: /opt/homelab/config/zigbee2mqtt/configuration.yaml