services:
  homeassistant:
    container_name: homeassistant
    devices:
    - /dev/serial/by-id/usb-Silicon_Labs_HubZ_Smart_Home_Controller_51600E94-if00-port0:/dev/serial/by-id/usb-Silicon_Labs_HubZ_Smart_Home_Controller_51600E94-if00-port0:rwm
    - /dev/serial/by-id/usb-Silicon_Labs_HubZ_Smart_Home_Controller_51600E94-if01-port0:/dev/serial/by-id/usb-Silicon_Labs_HubZ_Smart_Home_Controller_51600E94-if01-port0:rwm
    entrypoint:
    - /init
    environment:
      LANG: C.UTF-8
      PATH: /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
      S6_BEHAVIOUR_IF_STAGE2_FAILS: '2'
      S6_CMD_WAIT_FOR_SERVICES: '1'
      S6_CMD_WAIT_FOR_SERVICES_MAXTIME: '0'
      S6_SERVICES_GRACETIME: '240000'
      S6_SERVICES_READYTIME: '50'
      UV_EXTRA_INDEX_URL: https://wheels.home-assistant.io/musllinux-index/
      UV_NO_CACHE: 'true'
      UV_SYSTEM_PYTHON: 'true'
    image: ghcr.io/home-assistant/home-assistant:stable
    ports:
    - 8123:8123/tcp
    privileged: true
    restart: unless-stopped
    security_opt:
    - label=disable
    volumes:
    - /home/jonathan/homeassistant/config:/config:rw
    working_dir: /config
