Closed adilinden closed 7 months ago
I’m not an expert on dbus, but am thinking this may not be feasible. As the avaihi daemon needs to be told about homebridge, and the container running homebridge would need to tell your host avahi daemon about it.
have you tried googling docker and shared dbus support?
PS I’m currently on vacation, and won’t have access to my test environment for a month
FYI- Looks similar to my issue #558
I was/am able to bring HB up but NOT leverage the AVAHI for mDNS advertising as I too was unable to share the daemon.
You MUST use host mode (and make sure you aren't on separate VLANs unless you set up a VLAN rule/relay/broadcaster)
Alternatively you could do what I did 5 years ago when I was more actively using this, set up a Docker MACLAN... Silly to do and a waste of resources but might look into setting that up again. That way you have a distinct MAC address for HB and and of course can run another instance to the AVAHI daemon as it will be running on it's own IP address..
Again not the ideal solution but worth mentioning...
--T
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been closed as no further activity has occurred.
Current Situation
I am running homebridge in a docker container on Debian 11 (bullseye). Since my host already runs
avahi-daemon
I would like to have homebridge utilize it to advertise itself. I following the instructions in https://github.com/homebridge/homebridge/wiki/mDNS-Options but there's no sign of homebridge on my network. I explicitly enabled dbus support in the avahi-daemon configuration, although I suspect it may be enabled by default already. The hostsavahi-daemon.conf
looks identical to theavahi-daemon.conf
inside to homebridge container. It does not matter whether I run the homebridge container with host mode or not, neither works.How can I tell if homebridge is properly using dbus? Sorry, but this is the first time I am touching dbus in any way.
Logs
Without debug
Configuration
From
homebridge/config.json
From
egrep -v '^\s*#' /etc/avahi/avahi-daemon.conf
From
docker-compose.yml
Environment
Process Supervisor
Docker (Mention image name in
Additional Context
)Additional Context
homebridge/homebridge:latest