I have both music-assistant-server and a python-matter-server running on the same physical host via docker-compose. Both are heavily reliant on mdns, and therefore each needs network_mode: host . Each container is somehow listening on port 5353 on every interface of the host machine, which I think may be causing spurious behavior in each container, but I cannot be sure of that. In the case of music-assistant, this manifests as players very randomly appearing and disappearing, especially while not actively playing anything. In the case of python-matter-server, this seems to result in devices being marked offline even if they are fully available on both ipv4 and ipv6 networks.
I have tried searching for the better part of a day now and am not finding any good answers to the following question: How do I disable python-matter-server from starting up its own avahi listeners, in favor of using mdns services from either a systemd controlled avahi-daemon, or second choice an avahi-daemon container instead?