Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2k
Install Homebridge on Docker
This guide provides step-by-step instructions to show you how to install Homebridge on Docker as a service so it will automatically start on boot.
Before you get started, make sure you have the following ready:
- A Linux host withDocker installed or a NAS that supports Docker.
- Homebridgedoes not work when running in Docker for Mac or Docker for Windows due tothis andthis.
- Homebridge with Docker on Synology DSM
- Homebridge with Docker on QNAP Container Station
- Homebridge with Docker on Unraid
- Homebridge with Docker on TrueNAS Scale
TheHomebridge Docker image supportsamd64,arm32v6 andarm64v8 host architectures. The correct image for your system will automatically be downloaded.
Docker Compose is the easiest way to start and maintain your Homebridge Docker image. Make sure you have the latest version of thedocker-compose command installed on your system.
Seehttps://docs.docker.com/compose/install/ for instructions.
After ensuring Docker Compose is installed create a new file nameddocker-compose.yml that contains the following:
version:'2'services:homebridge:image:homebridge/homebridge:latestrestart:alwaysnetwork_mode:hostvolumes: -./volumes/homebridge:/homebridgelogging:driver:json-fileoptions:max-size:"10mb"max-file:"1"
For more details on the environment options see thehomebridge/docker-homebridge project page.
Run the following command to start the Homebridge Docker container:
docker-compose up -dTheHomebridge UI web interface will allow you to install, remove and update plugins, and modify the Homebridge config.json and manage other aspects of your Homebridge service.
Login to the web interface by going tohttp://<ip address of your server>:8581.
To find the IP address of your server you can run:
hostname -I
Review theConfiguration Reference at the bottom of this guide.
To upgrade Node.js you will need to download the latest version of the Docker image. This can be done using the following commands:
# run these commands from the same directory you created the docker-compose.yml file indocker-compose pulldocker-compose up -dAfter running these commands your Homebridge Docker container will automatically restart if there was an update available.
This table contains important information about your setup. You can use the information provided here as a reference when configuring or troubleshooting your environment after setting up Homebridge using the instructions below.
| File Location / Command | |
|---|---|
| Config File Path | /homebridge/config.json (inside container) |
| Storage Path | /homebridge (inside container) |
| Restart Command | docker restart homebridge |
| Stop Command | docker stop homebridge |
| Start Command | docker start homebridge |
| View Logs Command | docker logs -f homebridge |
- Raspberry Pi
- Debian, Ubuntu
- CentOS, Fedora, Red Hat
- Arch, Manjaro
- Docker
- Virtual Machine ( Windows and MacOS)
- macOS
- Synology DSM 7
- Other Platforms
- Basic Troubleshooting
- Backup and Restore
- Child Bridges
- Config File
- Connect To HomeKit
- FFmpeg for Homebridge
- HomeKit Glossary of Terms
- iOS Homemanager App
- mDNS Options
- Remote Access
- Useful Links
- Basic Troubleshooting
- Config Options
- Enabling Accessory Control
- Enabling UI with Docker
- Homebridge Service Command
- Manual Configuration
- Reverse Proxy: Apache
- Reverse Proxy: Nginx and SSL
- Standalone Mode
- Swap From Standalone To Service Mode
- Developer Docs
- API Reference
- Plugin Templates
- Other Links (Internal)
- Other Links (External)