• Stars
    star
    2,577
  • Rank 17,788 (Top 0.4 %)
  • Language
    Shell
  • License
    GNU General Publi...
  • Created over 7 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Homebridge Docker. HomeKit support for the impatient using Docker on x86_64, Raspberry Pi (armhf) and ARM64. Includes ffmpeg + libfdk-aac.

Donate Docker Build Status Docker Pulls Discord

Important Update

We have moved the hosting of the offical homebridge docker image from oznu/homebridge to homebridge/homebridge. Please update your environments as needed to pickup the latest image.

Homebridge Docker Image

This Ubuntu Linux based Docker image allows you to run Nfarina's Homebridge on your home network which emulates the iOS HomeKit API.

This is a multi-arch image and will run on x86_64, Raspberry Pi 2, 3, 4, Zero 2 W, or other Docker-enabled ARMv7/8 devices. Docker will automatically pull the correct image for your system.

Image Tag Architectures Base Image
latest, ubuntu amd64, arm32v7, arm64v8 Ubuntu 22.04

Step-By-Step Guides

Compatibility

Homebridge requires full access to your local network to function correctly which can be achieved using the --net=host flag.

This image will not work when using Docker for Mac or Docker for Windows due to this and this.

Usage

Command Line:

docker run --net=host --name=homebridge -v $(pwd)/homebridge:/homebridge homebridge/homebridge:latest

Using Docker Compose (recommended):

version: '2'
services:
  homebridge:
    image: homebridge/homebridge:latest
    restart: always
    network_mode: host
    volumes:
      - ./volumes/homebridge:/homebridge
    logging:
      driver: json-file
      options:
        max-size: "10mb"
        max-file: "1"

Parameters

The parameters are split into two halves, separated by a colon, the left hand side representing the host and the right the container side.

  • --net=host - Shares host networking with container, required
  • -v /homebridge - The Homebridge config and plugin location, required
Optional Settings:
  • -e TZ - for timezone information e.g. -e TZ=Australia/Canberra
  • -e ENABLE_AVAHI - default is 1; set to 0 to prevent the Avahi mDNS service running in the container

Homebridge UI

This image comes with the Homebridge UI pre-installed and is the easiest way to manage all aspects of Homebridge.

To manage Homebridge go to http://<ip of server>:8581 in your browser. For example, http://192.168.1.20:8581. From here you can install, remove and update plugins, modify the Homebridge config.json and restart Homebridge.

Automated Updates

Automated updates of the Homebridge Docker Image using tools such as Watchtower or similar are strongly discouraged and are done so at your own risk.

NOTE - The version of Homebridge IS NOT tied to the version of the container. You can update Homebridge, the Homebridge UI and the Node.js runtime from inside the container.

Troubleshooting

1. Need ffmpeg?

ffmpeg, with libfdk-aac audio support is included in this image.

2. Container will not start on older versions of Raspbian

If you're seeing errors like the following, your host operating system needs to be updated.

See #434 and #441 for potential solutions.

Node.js[445]: ../src/util.cc:188:double node::GetCurrentTimeInMicroseconds(): Assertion `(0) == (uv_gettimeofday(&tv))' failed.
Aborted (core dumped)
homebridge_1  | s6-svscan: warning: unable to iopause: Operation not permitted
homebridge_1  | s6-svscan: warning: executing into .s6-svscan/crash
homebridge_1  | s6-svscan crashed. Killing everything and exiting.
homebridge    | # Fatal error in , line 0
homebridge    | # unreachable code

3. Ask on Discord

Join the Official Homebridge Discord community and ask in the #docker channel.

License

Copyright (C) 2023 homebridge Copyright (C) 2017-2022 oznu

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

More Repositories

1

homebridge

HomeKit support for the impatient.
TypeScript
22,843
star
2

HAP-NodeJS

Node.js implementation of the HomeKit Accessory Protocol (HAP)
TypeScript
2,685
star
3

homebridge-config-ui-x

The Homebridge UI. Monitor, configure and backup Homebridge from a browser.
TypeScript
2,614
star
4

homebridge-raspbian-image

Official Homebridge Raspberry Pi Image based on Raspberry Pi OS Lite.
Shell
1,004
star
5

homebridge-syno-spk

Homebridge Package for Synology DSM 7.
Shell
606
star
6

verified

Plugins Verified by Homebridge
TypeScript
348
star
7

homebridge-plugin-template

A template you can use to create your own Homebridge plugins.
TypeScript
279
star
8

ffmpeg-for-homebridge

Static FFmpeg binaries for Homebridge with support for audio (libfdk-aac) and hardware-accelerated decoding and encoding (h264_qsv, h264_v4l2m2m, videotoolbox).
Shell
108
star
9

ciao

RFC 6762 and RFC 6763 compliant mdns service discovery library written in Typescript
TypeScript
77
star
10

homebridge-examples

Collection of homebridge plugin examples
TypeScript
77
star
11

plugin-ui-utils

Create fully customisable configuration user interfaces for Homebridge plugins.
TypeScript
29
star
12

homebridge-apt-pkg

Debian / Ubuntu package and repo for Homebridge
Shell
21
star
13

camera-utils

Utilities to simplify homebridge camera plugin development
TypeScript
18
star
14

homebridge.io

The https://homebridge.io website.
HTML
10
star
15

homebridge.github.io

Homebridge Plugin Development Documentation Website.
SCSS
10
star
16

HAP-NodeJS-examples

Collection of examples to get started using HAP-NodeJS as a library.
TypeScript
9
star
17

.github

Global workflow files and community health files for the Homebridge organization.
8
star
18

documentation

Placeholder repository for the Homebridge plugin development docs.
JavaScript
7
star
19

homebridge-macos-pkg

Work in progress. Homebridge macOS Installer.
Shell
7
star
20

branding

Homebridge branding guidelines, naming conventions, logo usage rules, and logo files.
7
star
21

hap-client

A client for an insecure HAP-NodeJS instance
TypeScript
6
star
22

mdns-diagnostics

Test tool to display HAP instances on your network
JavaScript
4
star
23

homebridge-plugin-camera-template

A template you can use to create your own Homebridge camera plugins.
TypeScript
2
star
24

plugin-repo

Bundles for Verified Homebridge Plugins
TypeScript
2
star