Setup Homebridge to run via Docker on a Raspberry Pi.
Assume source of truth for files is on laptop, and you want to "deploy" them to Pi upon changes.
- In this directory, rename
config.tpl.jsontoconfig.jsonfor Homebridge (bigger sample here) and change theusernameandpinto something unique). - Add any Homebridge plugins to
package.jsonandconfig.json - Setup your Raspberry Pi with your SSH key so you can just do
ssh pi@rpi.localto login. - On the Pi, create a directory called
homebridge - On the Pi, install Docker and Docker Compose
From Mac:
./push.sh
From Raspberry Pi (ssh pi@rpi.local)
cd homebridge
sudo docker-compose up -d
This uses https://github.com/oznu/docker-homebridge
Later, to upgrade to a newer version, just run:
cd homebridge
sudo docker-compose pull
sudo docker-compose up -d