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 <noreply@anthropic.com>
This commit is contained in:
Oskar Kapala 2026-05-27 15:11:42 +02:00
parent 51002d4502
commit 61e07f4318

View file

@ -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