Public Repository

Last pushed: a year ago
Short Description
Docker built version of Homebridge designed to run on a Synology NAS. See full description.
Full Description

This is a Docker built version of Homebridge designed to run on a Synology NAS from https://github.com/nfarina/homebridge and built from https://github.com/cbrandlehner/homebridge-docker version. I am running a Synology 1815+ and DSM 6.0-7321.

On your Synology NAS, create a "docker" folder on your shared volume and then create a subfolder "homebridge". After creating your config.json and package.json files, copy them to the shared "docker/homebridge" folder. The config.json will have your homebridge config and the package.json will list the NPM packages that you want to be built each time the container is run. See https://github.com/psmith3/synology-docker-homebridge/tree/master/config-sample for samples of both the config.json and package.json files.

Run the container from the homebridge_start.sh via the Synology Task Scheduler or via SSH command line by entering

sudo docker run --name=homebridge -d --restart=always --net=host -p 51826:51826 -v /volume1/docker/homebridge:/root/.homebridge psmith/synology-docker-homebridge:0.13

Enter your root password to run the command.

If you want to use Synology Task Scheduler in the Control Panel of the NAS, you will need to copy homebridge_start.sh to the "docker/homebridge" folder on the shared volume. Next, create a task that runs the docker/homebridge/homebridge_start.sh at bootup and optionally, I have another that restarts the container at 1:45am everynight. This is not neccesary, but in my earlier testing, I often rebooted and just built the task to keep it all clean. For the tasks, you will need to make the task user root.

If you are running the firewall on the Synology, you will need to open TCP 5353 & 51826. You could select from a list of built-in applications and select "Docker homebridge 51826 Docker (TCP)" and "Bonjour 5353 Bonjour Service" You can find the firwall profiles under the Control Panel/Security. If you do not open these ports, the firewall will close within a few minutes and your app will not be reachable from an IOS device.

Docker Pull Command
Owner
psmith

Comments (3)
kranzy
a year ago

When trying to install multiple plugins in the package.json file the only loads the last in the list and then cant load the other items in the config file as the packages aren't installed.

Where you able to get it to load multiple plugins from the package.json file??

psmith
a year ago

Are you able to see the log file in the docker container after the crash? Would need to see that. Check the syntax of your config and package files? Might be a package that is not installing correctly.

tootles
a year ago

i got it running, but it seems to restart every 30-60 seconds... any idea what i can do? im using a DS1513+ ... after 1 minute or so of running it seems to crash then restart.