Dominevo
Installation

Docker Compose

A complete, working compose file for a Dominevo hub, with every setting explained and the optional-hardware traps called out.

This page gets a Dominevo hub running on a Docker host, with recordings landing on a disk you chose and your hardware passed through correctly.

Before you start

  • A Linux host with Docker and the Compose plugin.
  • A directory to work in. The bind paths below are relative to the compose file, so docker compose up creates them beside it.
  • What to pass: run npx dominevo host-check on this host. It prints the image tag and the exact devices: lines for the hardware it finds, NVIDIA included. See Accelerator passthrough.
  • A decision about where recordings go — see Planning.

The compose file

Save this as docker-compose.yml. It is the hub; the agent service is on Adding another machine because it belongs on a different host.

docker-compose.yml
services:
  dominevo:
    # Intel Gen12+ GPU/NPU hosts: intel-latest. Intel Gen8–Gen11: intel-legacy-latest.
    # AMD APU hosts: amd-latest (see Proxmox). NVIDIA: nvidia-latest or
    # nvidia-legacy-latest (see Accelerators). Do not mix tags across vendors.
    image: ghcr.io/dominevo/dominevo:intel-latest
    container_name: dominevo
    restart: unless-stopped
    # Host networking: the hub sees its real LAN address, which agents,
    # sign-in links and WebRTC all use. Under bridge networking, add a
    # custom address on the Network page.
    network_mode: host
    # A container counts THREADS against this limit; Docker's 2048 default
    # was measured refusing thread creation on a busy hub.
    pids_limit: 8192
    # Optional hardware ships commented out on purpose: Docker refuses to
    # start a container whose declared device is absent. Uncomment the
    # `devices:` key AND only the entries this machine actually has.
    # No group_add is needed: the entrypoint hands every passed device node
    # to the dominevo user (it drops supplementary groups anyway).
    # devices:
    #   # Hardware video decode/encode (VAAPI/QSV) and OpenVINO GPU inference.
    #   - /dev/dri:/dev/dri
    #   # Intel NPU for OpenVINO inference. On AMD XDNA: present-only today.
    #   - /dev/accel:/dev/accel
    # Coral USB re-enumerates when it initialises; this admits the whole USB
    # character-device major. Pairs with the /dev/bus/usb mapping.
    device_cgroup_rules:
      - "c 189:* rmw"
    volumes:
      # Addons, models, TLS certificates, logs, the SQLite database.
      # Losing this loses the install.
      - ./dominevo-data:/data
      # Backup archives. The image declares /backups a volume; map it or
      # Docker creates an anonymous one on every re-create.
      - ./dominevo-backups:/backups
      # Recordings and event media. Point this at a roomy disk.
      - ./dominevo-recordings:/recordings
      # Coral USB Edge TPU — the whole bus, not one node. Remove if you
      # have no Coral.
      - /dev/bus/usb:/dev/bus/usb
      # Optional: the keychain master key, kept OFF the data folder so a copy
      # of the data folder alone does not hold it. The container path is fixed.
      # See Admin & diagnose → Secrets.
      # - /secure/dominevo/keychain.key:/run/secrets/camstack-master-key:ro
    environment:
      - DOMINEVO_ROLE=hub
      # No secrets here: no password, token or key is ever read from the
      # environment. The first boot creates admin / changeme.
      # Container path all media is written under. Must match the
      # /recordings mapping above.
      - DOMINEVO_MEDIA_ROOT=/recordings
      # Optional, advanced — see "Optional environment" below.
      # - DOMINEVO_PORT=
      - DOMINEVO_MOLECULER_USE_HOSTNAME=false
      - DOMINEVO_LOG_LEVEL=info
      # Your time zone: sunrise, schedules and notification times use it.
      - TZ=Europe/Rome
    logging:
      driver: json-file
      options:
        max-size: "10m"
        max-file: "3"

The first sign-in

There is no password to set in the compose file. The first boot creates the account admin with the password changeme, and the first sign-in asks you to choose a new one. The account is created once, only when no admin exists; see First run to recover a forgotten password.

Start it

docker compose up -d
docker compose logs -f dominevo

The first boot seeds addons and pulls detection models, so give it a few minutes. The image's healthcheck allows a 180-second start period before it begins reporting unhealthy.

When it is up, the admin UI is at https://<host-ip>:4443 with a self-signed certificate — your browser will warn, and you have to accept it. Continue to First run.

The three settings people get wrong

pids_limit: 8192

A container's process limit counts threads, not processes. Docker's default of 2048 was measured refusing thread creation on a busy hub, and the symptom is media that quietly stops — not an error that names the limit. Keep the ceiling: it is what makes a real thread leak visible.

You do not need shm_size: Dominevo does not use /dev/shm, so Docker's default is fine.

Matter devices on Thread

If you share Matter devices that run on Thread (locks, sensors), the kernel must accept the route your Thread border router advertises for its mesh prefix. Without it the device is commissioned but never answers. With host networking (the example above), set it on the Docker host:

# replace eth0 with the host's LAN interface
sudo sysctl -w net.ipv6.conf.eth0.accept_ra_rt_info_max_plen=64

If you run the container on its own network instead (a macvlan or bridge network with IPv6), add this to the service instead. Docker refuses the interface-named form (net.ipv6.conf.eth0.…), so use default:

    sysctls:
      - net.ipv6.conf.default.accept_ra_rt_info_max_plen=64

DOMINEVO_MEDIA_ROOT

Mapping /recordings does nothing on its own. The variable is what tells the server to write there. Omit it and recordings land inside /data, which on a NAS is usually your cache drive.

Optional devices are commented out for a reason

Docker refuses to start a container that declares a device the host does not have. So /dev/dri and /dev/accel ship disabled. To enable them you must uncomment the devices: key and the entries you want — uncommenting only the list entries is a YAML parse error, deliberately, so a half-edit fails loudly instead of silently.

If your host has no integrated GPU, leave /dev/dri out. Software decode costs roughly 60% of a CPU for a handful of 4K HEVC cameras.

Optional environment

Everything below is optional.

If your config.yaml set a non-default port, host or data path, set the matching variable; the file is ignored from the next release. Browser origins allowed to call the hub are set in Administration → System → Settings → Authentication.

VariableShipped valueWhat it does
DOMINEVO_PORT4443The port the admin UI and API listen on. With host networking this is the host port. Put the new port in each agent's hub URL too.
DOMINEVO_LOG_LEVELinfotrace, debug, info, warn or error.
TZunset (UTC)Your time zone, e.g. Europe/Rome. The site's default zone: sunrise and sunset, schedules, notification times.

There is no variable for the hub's own address. Agents, sign-in links and notification links take it from the Addresses card on the Network page, where it is picked automatically. Under bridge networking the hub sees only its container address; see How the hub sits on your network for what to set instead.

To use your own HTTPS certificate, upload it in the admin UI under Network → Local access.

The full list, including the internal variables you should not set, is in Environment variables.

Updating

docker compose pull && docker compose up -d gets you a new image. That is not how you get new Dominevo features — the application updates itself from inside. See Updating for which is which.