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

Multiple instances of Homebridge on Docker Synology seem to share accessories #382

Closed g33z3riley closed 2 years ago

g33z3riley commented 3 years ago

Hi there - amazing work on homebridge - I love it! I've got 7 instances of Homebridge running in Docker on my Synology NAS and in each case have created them with a volume /homebridge(x) x=1-7 and created a new folder for each. I've also changed the ports in the config as soon as I first start it. When I start up homebridge the log always says hostname: oznu-homebridge(x): Host not found. I've noticed also that the config in the system information window for all the instances seems to have the same config file i.e. /homebridge/config.json and each instance shows all of the accessories from all of the homebridges rather than just the accessories I've created in that particular instance. I've also noticed that the folder I created for the homebridge container is empty in each case. Have I done something wrong when I'm creating the homebridge instances?

Screen Shot 2021-08-04 at 5 19 09 am Screen Shot 2021-08-04 at 5 16 34 am Screen Shot 2021-08-04 at 5 11 47 am
thecem commented 3 years ago

In docker container there is no folder with homebridge(X). Every of your dockers are clones so only the outside world need to be numbered. In docker use it without number…

g33z3riley commented 3 years ago

Ah great thank you! Is it normal for the accessories to show up in all the homebridge instances? I imagined only the accessories created within the homebridge instance would show up but instead every homebridge shows every accessory.

g33z3riley commented 3 years ago

Sorry I just realised what you meant. I was trying to add a number to the volume Mount where I didn't need to. Sorry I'm new to all this

superpower10 commented 3 years ago

In docker container there is no folder with homebridge(X). Every of your dockers are clones so only the outside world need to be numbered. In docker use it without number…

Sorry, but I don’t understand it. What do I have to do exactly to get two different instances of homebridge with different plugins, etc.

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.