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.json
toconfig.json
for Homebridge (bigger sample here) and change theusername
andpin
to something unique). - Add any Homebridge plugins to
package.json
andconfig.json
- Setup your Raspberry Pi with your SSH key so you can just do
ssh pi@rpi.local
to 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