HA Docker with OTBR docker

Just another note to add here. You can make the OTBR border router persistent through reboots by adding this volume:

      - $HOME/.config/openthread/thread:/var/lib/thread

And there are environment variables for backbone interface and radio URL. My otbr service now looks like this:

  otbr:
    container_name: otbr
    image: openthread/otbr
    network_mode: host
    tty: true
    dns: 127.0.0.1
    restart: unless-stopped
    privileged: true
    volumes:
      - $HOME/.config/openthread/otbr-web:/etc/default/otbr-web:ro
      - $HOME/.config/openthread/thread:/var/lib/thread
      - /etc/localtime:/etc/localtime:ro
    environment:
      - BACKBONE_INTERFACE=bond0
      - RADIO_URL=spinel+hdlc+uart:///dev/ttyUSB1?uart-baudrate=460800
    devices:
      - /dev/ttyUSB1:/dev/ttyUSB1

I’m still only able to commission devices using the websocket, but it’s better than nothing I suppose.