--- # https://hub.docker.com/r/linuxserver/homeassistant services: homeassistant: image: lscr.io/linuxserver/homeassistant:latest container_name: homeassistant network_mode: host environment: - PUID=1000 - PGID=1000 - TZ=Etc/UTC volumes: - CHANGE_TO_COMPOSE_DATA_PATH/homeassistant:/config ports: - 8123:8123 #optional devices: - /path/to/device:/path/to/device #optional restart: unless-stopped