homebridge / docker-homebridge

Homebridge Docker. HomeKit support for the impatient using Docker on x86_64, Raspberry Pi (armhf) and ARM64. Includes ffmpeg + libfdk-aac.
https://hub.docker.com/r/homebridge/homebridge/
GNU General Public License v3.0
2.57k stars 240 forks source link

Broadcast homebridge.local from docker container #381

Closed Soneji closed 2 years ago

Soneji commented 2 years ago

Hi

I would like to be able to broadcast the homebridge.local domain name with avahi, just like it is done when I installed homebridge directly on my pi (using the sd card image), is it possible to do this with the docker version of homebridge?

Do I need to expose any specific volmes?

I found this file, but would love to know if I'm going in the right direction https://github.com/oznu/docker-homebridge/blob/a98e2338217159bd7dc03dd3b77849c0094cff03/root/defaults/avahi-daemon.conf#L2

Thanks in advance

stale[bot] commented 2 years ago

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.

Soneji commented 2 years ago

Hi, please don't close this issue. I still have this problem

jspv commented 2 years ago

It's undocumented, but the docker argument -e DSM_HOSTNAME myhostname will configure avahi to advertise myhostname.local.

Note: you will need be running your docker in either host networking or macvlan networking for mDNS/Avahi to work.

github-actions[bot] commented 2 years ago

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.