Skip to content

Multiple Instances Example

Northern Man edited this page Jun 30, 2023 · 4 revisions

💡 Homebridge now supports Child Bridges which are an easier to manage alternative to running multiple instances.


Example docker-compose.yml file showing how to configure multiple instances:

version: '2'
services:
  homebridge-one:
    image: homebridge/homebridge:latest
    restart: always
    network_mode: host
    environment:
      - TZ=Australia/Canberra
      - PGID=1000
      - PUID=1000
    volumes:
      - ./volumes/homebridge-one:/homebridge
  homebridge-two:
    image: homebridge/homebridge:latest
    restart: always
    network_mode: host
    environment:
      - TZ=Australia/Canberra
      - PGID=1000
      - PUID=1000
    volumes:
      - ./volumes/homebridge-two:/homebridge
  homebridge-three:
    image: homebridge/homebridge:latest
    restart: always
    network_mode: host
    environment:
      - TZ=Australia/Canberra
      - PGID=1000
      - PUID=1000
    volumes:
      - ./volumes/homebridge-three:/homebridge