Skip to content

Instantly share code, notes, and snippets.

@itsmepetrov
Last active March 10, 2019 16:44
Show Gist options
  • Save itsmepetrov/59fbff4a975b990fd1b0dcc445ca9542 to your computer and use it in GitHub Desktop.
Save itsmepetrov/59fbff4a975b990fd1b0dcc445ca9542 to your computer and use it in GitHub Desktop.
Docker compose for Homebridge with ZigBee plugin platform (Raspberry PI)

Docker compose for Homebridge with ZigBee plugin platform (Raspberry PI)

Installation

After running the docker compose configuration add homebridge-zigbee plugin using the following command:

docker-compose exec homebridge npm i homebridge-zigbee

or beta version from github:

docker-compose exec homebridge npm i itsmepetrov/homebridge-zigbee

Don't forget to specify your own token (YOUR_NGROK_TOKEN) for ngrok to have access to your raspberry from outside.

version: '2'
services:
homebridge:
image: oznu/homebridge:raspberry-pi
restart: always
network_mode: host
volumes:
- ./homebridge:/homebridge
devices:
- /dev/ttyACM0
environment:
- TZ=Europe/Moscow
- PGID=0
- PUID=0
- PACKAGES=linux-headers,udev
- HOMEBRIDGE_INSECURE=1
- HOMEBRIDGE_CONFIG_UI=1
- HOMEBRIDGE_CONFIG_UI_PORT=80
ngrok:
image: itsmepetrov/ngrok:armhf
restart: always
network_mode: host
environment:
CONFIG_STRING: |
authtoken: YOUR_NGROK_TOKEN
region: eu
tunnels:
web:
addr: 80
proto: http
ssh:
addr: 22
proto: tcp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment