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 with Docker installed or a NAS that supports Docker.
- Homebridge does not work when running in Docker for Mac or Docker for Windows due to this and this.
- Homebridge with Docker on Synology DSM
- Homebridge with Docker on QNAP Container Station
- Homebridge with Docker on Unraid
- Homebridge with Docker on TrueNAS Scale
The Homebridge Docker image supports amd64
, arm32v6
and arm64v8
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 the docker-compose
command installed on your system.
See https://docs.docker.com/compose/install/ for instructions.
After ensuring Docker Compose is installed create a new file named docker-compose.yml
that contains the following:
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"
For more details on the environment options see the homebridge/docker-homebridge project page.
Run the following command to start the Homebridge Docker container:
docker-compose up -d
The Homebridge 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 to http://<ip address of your server>:8581
.
To find the IP address of your server you can run:
hostname -I
Review the Configuration 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 in
docker-compose pull
docker-compose up -d
After 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
- macOS
- Windows 10 / 11 (Hyper-V)
- Docker
- 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)