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:
parent
51002d4502
commit
61e07f4318
|
|
@ -3,6 +3,9 @@ services:
|
||||||
# host network: mosquitto runs with network_mode: host on chelsty-infra,
|
# host network: mosquitto runs with network_mode: host on chelsty-infra,
|
||||||
# so zigbee2mqtt must also use host networking to reach localhost:1883.
|
# so zigbee2mqtt must also use host networking to reach localhost:1883.
|
||||||
network_mode: host
|
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:
|
volumes:
|
||||||
# configuration.yaml lives in the runtime config dir (not in Git).
|
# configuration.yaml lives in the runtime config dir (not in Git).
|
||||||
# On chelsty-infra: /opt/homelab/config/zigbee2mqtt/configuration.yaml
|
# On chelsty-infra: /opt/homelab/config/zigbee2mqtt/configuration.yaml
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue