AUDIO
Listen to this page
Chapters
Deployment
Base stack
Deployment lives in docker-compose.yml at the repo root (one file, three
services plus optional profiles) — docker compose up -d --build installs the
whole stack on any OS. Only the core is published on the host port (8080);
STT and TTS are internal to the compose network.
services:
core: # build: ./server (Node.js + built-in dashboard) — host port 8080
# environment: STT_URL=http://stt:8000, TTS_URL=http://tts:5000, TTS_TTS_PATH=/synthesize
stt: # image: ghcr.io/speaches-ai/speaches:latest-cpu (faster-whisper ASR, :8000)
# volume: named volume for the HuggingFace model cache (downloaded on first use)
tts: # build: ./tts (python piper-tts[http] web server, :5000)
# POST /synthesize {text, voice}; voices downloaded into ./ai-models/piper via PIPER_VOICES
ollama: # optional (profile llm) local LLM for the Agent
The core image builds the Admin Dashboard SPA during docker build
(server/Dockerfile) and serves it at /admin. Home identity, settings and
audit data persist in a named volume (DB_PATH=/app/data/holai.db); plugins
stay in a bind mount (./server/plugins).
The TTS container is the modern piper HTTP server (piper1-gpl): POST /synthesize with {"text": "...", "voice": "..."} returns a WAV — the core
maps a detected STT language to a voice name from /api/v1/settings/speech
(ttsVoices).
If the deployment's network reaches the internet only through a proxy
(some plugins call public APIs, e.g. orbit's weather/holiday services), add
NODE_USE_ENV_PROXY=1 plus HTTPS_PROXY=http://<host>:<port> to the
core service environment — Node's fetch then honors the proxy.
Optional profiles
| Profile | What it starts |
|---|---|
llm |
the local ollama LLM container for the Agent |
flash |
the lightweight ESPHome compile service (~+2 GB; see plugins/esphome) |
cameras |
the camera detection container (see plugins/cameras) |
GPU reservations are attached by the installer through the sibling
docker-compose.gpu.yml (see getting-started).
Plugin compose autodiscovery
Plugins may ship their own docker-compose.yml next to index.js (sidecar
services). The installer merges those files into the main stack:
COMPOSE_FILE=docker-compose.yml[:…]:server/plugins/<name>/docker-compose.yml
in .env — so the services join the holai network and the core reaches them
by service name with plain HTTP, and NO plugin ever needs the docker socket
or a require() of docker SDKs. The doctor warns when an installed plugin
ships a compose file that is not merged yet, and prints the exact line to add.
Rules for plugin compose files:
- sidecar service names must not clash with the core's service names (the
ollama plugin ships
ollama-localbecause the optionalllmprofile definesollama); - an optional sibling
docker-compose.gpu.ymlis appended to the chain when the GPU mode was accepted; - networks/volumes are project-scoped — a plugin compose file adds only its service, its volume and nothing else.
Reference example: plugins/ollama.
Backend containers the core manages (opt-in)
Some plugins are only front-ends for a container that does the heavy work;
the core/plugin cannot run (docker build) the build itself, so the profile
must be started once by the admin:
- cameras-worker —
docker compose --profile cameras up -d --build. Plugin storage/UI details: plugins/cameras. - esphome flash —
docker compose --profile flash up -d. Details: plugins/esphome.
Changes inside server/src/… are baked into the core image → run
docker compose up -d --build core. Plugin changes are bind-mounted — a plain
docker restart <container> is enough. The cameras worker contains its own
copy of app.py → rebuild it after edits.
Software updates & rollback
New core releases are published on GitHub (holai-org/holai): a tag
vX.Y.Z per release, every pre-release (vX.Y.Z-rc.N, GitHub "pre-release"
flag) counts as unstable. A release ships prebuilt Docker images:
ghcr.io/holai-org/holai/core:<tag> — nothing is built on the user's
machine. Plugins update independently through the npm marketplace with
their own staging + rollback (marketplace).
The dashboard has a Software updates page (admin):
- Check — the core polls the GitHub releases feed (every 6 h in the
background, on demand via the button) and compares against its own
version. The channel decides what counts:
stablesees only real releases,unstablealso sees pre-releases. - Update now — asks for confirmation (the core will restart). On
confirm the core takes a database snapshot, stages a flat request
file into
server/data/updates/and its work ends there — the container cannot replace itself. - The host updater (
updater/holai-updater.sh, bash + docker CLI — runs on Linux/RPi/macOS/Git-Bash-Windows; needs Compose, falls back to the standalonedocker-composebinary) picks the request up: it pulls the release image, tags the running image asholai-core:rollback, recreates the core container and waits for the HTTP health check. The live progress (pull → swap → health) shows on the same dashboard page.install-serviceregisters a systemd user service on Linux/RPi; on macOS/Windows it prints the launchd / Task Scheduler recipe instead (or run it in a terminal while needed). - Fail-safe: if the new version never answers, the updater restores
the previous image + the database snapshot by itself and reports the
failure. Roll back is also one click (or
./updater/holai-updater.sh onceafter staging through the API) — it returns to the previous version and the pre-update database snapshot; changes made since the update are lost (that is the honest trade-off).
Manual mode (no host updater, or bare-metal installs): the dashboard shows
the commands instead of the button — docker compose pull core && docker compose up -d core, or git fetch --tags && git checkout vX.Y.Z && cd server && npm install && npm start. The release feed is configurable
(HOLO_REPO env / a repo field on the channel endpoint) for forks.
Bare-metal alternative
A Node process (cd server && npm install && npm start) runs without Docker;
the STT/TTS URLs become plain env overrides. The ollama plugin starts its
compose file through the docker CLI in this mode. Dashboard dev mode:
cd server && npm install && npm start # core on :8080
cd server/dashboard && npm install && npm run dev # dashboard on :5173 (proxies /api)
Stop / reset
docker compose down # stop (data volumes are kept)
docker compose down -v # stop and delete ALL data (models, users, db)
Last updated: November 2026