Docker Deployment
The standard deployment runs a backend and frontend on one Docker host with persistent bind mounts.
Prerequisites
- Docker Engine or Docker Desktop
- Docker Compose v2, invoked as
docker compose - Persistent storage sized for recordings
Installer
Linux and macOS:
curl -fsSL https://docs.srec.rs/install.sh | bashWindows PowerShell:
irm https://docs.srec.rs/install.ps1 | iexThe installer downloads Compose and environment files, generates unique secrets, detects optional NVIDIA support, and offers to start the services. When VERSION is not set, it asks whether to install the stable latest image or the dev development build. Both entry points pick a localized installer from SREC_LANG or the system locale; set SREC_LANG explicitly to override it.
Piping a remote script to a shell executes the current network response. Environments with change control should download the script, verify its contents and checksum, then run the reviewed local copy or use the manual setup below.
Installer settings:
| Variable | Purpose | Default |
|---|---|---|
SREC_LANG | en or zh | Detected from locale |
RUST_SREC_DIR | Installation directory | ./rust-srec |
VERSION | Image tag | latest |
For a reviewed release, set an explicit version. Example for Linux/macOS:
curl -fsSL https://docs.srec.rs/install.sh | RUST_SREC_DIR=/opt/rust-srec VERSION=v0.8.0 bashThe systemd service installs the backend binary at /opt/rust-srec/rust-srec. Choose a different RUST_SREC_DIR if both deployments share a host.
Manual Setup
-
Create a directory and download both files:
-
Rename them to
docker-compose.ymland.env. -
Generate two different secrets and set
JWT_SECRETandSESSION_SECRETin.env. Empty values intentionally make Compose refuse to start. -
Review paths, timezone, ports, and
VERSION. -
Start and verify:
docker compose up -d
docker compose ps
curl http://localhost:12555/api/health/liveGenerate a secret with openssl rand -hex 32. Where openssl is unavailable, use python3 -c 'import secrets; print(secrets.token_hex(32))'. On PowerShell:
$bytes = New-Object Byte[] 32
[Security.Cryptography.RandomNumberGenerator]::Create().GetBytes($bytes)
-join ($bytes | ForEach-Object { "{0:x2}" -f $_ })Default Layout
| Host | Container | Purpose |
|---|---|---|
./data | /app/data | SQLite and application data |
./config | /app/config | Platform configuration |
./output | /app/output | Recordings and pipeline output |
./logs | /app/logs | Application logs |
12555 | Backend 8080 | API and Swagger |
15275 | Frontend 80 | Web interface |
Use absolute host paths for a long-running deployment. The example enables unless-stopped, backend health checks, frontend startup ordering, and container log rotation.
Access and First Login
- Web interface:
http://localhost:15275 - Swagger UI:
http://localhost:12555/api/docs - Initial account:
admin/admin123!
The first login requires a password change. Continue with Make Your First Recording.
Optional Configuration
Proxy
There are two ways to send platform traffic through a proxy:
- Saved proxy: add it under Settings → Proxies and choose it as the Default proxy under Settings → Global → Network & System, or on the platform, template, streamer or account that needs it. Nothing in
.envchanges, so notifications and uploads keep connecting as before. Different platforms and accounts can use different proxies. - System proxy: set
HTTP_PROXY,HTTPS_PROXY, andNO_PROXYin.env; the example already passes them to the backend. Includelocalhost,127.0.0.1,rust-srecinNO_PROXY. Recreate the backend container so it reads them, then choose System proxy where it should apply. These variables also reach notifications and upload tools, whatever the proxy settings say.
Direct ignores the environment variables, FFmpeg and Streamlink included. See Proxies.
Browser Push
Generate VAPID keys, place them in .env, and restart the backend. Web Push requires HTTPS outside localhost. See Notification System.
NVIDIA GPU
Install the host driver and NVIDIA Container Toolkit, then download docker-compose.gpu.yml and start with:
docker compose -f docker-compose.yml -f docker-compose.gpu.yml up -d
docker exec rust-srec nvidia-smiThe override requests the gpu, compute, video, and utility capabilities. utility provides nvidia-smi, which System Health uses to show the GPU. If you write your own override, keep all four. Docker 29.1 and later can use the toolkit's generated device specification (CDI) instead, which decides what the container receives and ignores this list.
GPU access only enables compatible actions; choose an NVENC action preset in post-processing and monitor the GPU component on System Health.
Intel and AMD GPUs (VA-API / QSV / Vulkan)
The backend Docker image is built on Debian 13 (Trixie) and ships FFmpeg with VA-API, Intel QSV (amd64 only) and Vulkan Video support, together with the userspace drivers (mesa-va-drivers, mesa-vulkan-drivers, and on amd64 intel-media-va-driver-non-free, i965-va-driver-shaders and libmfx-gen1.2). Download docker-compose.dri.yml to pass /dev/dri into the container and start with:
docker compose -f docker-compose.yml -f docker-compose.dri.yml up -d
docker exec rust-srec ls -l /dev/driThen choose a VA-API, QSV or Vulkan encoder under Hardware Acceleration in a Convert or Burn chat in step (or start from the built-in VA-API / QSV presets) — the interface automatically marks accelerators and encoders detected as working on the host with an Available badge. Intel QSV uses the oneVPL GPU runtime (libmfx-gen1.2, covering 11th Gen Tiger Lake and newer, Core Ultra, and Arc); on older 6th–10th Gen Intel integrated GPUs, use VA-API instead. If your host has multiple GPUs, set Hardware Device to the render node (such as /dev/dri/renderD129) or Vulkan device index. System Health monitors Linux /dev/dri/renderD* render nodes alongside NVIDIA GPUs and raises a GPU unavailable notification if device access or permissions are lost.
Storage Cleanup
Delete files inside the mounted output directory; do not rename, replace, or move the host directory that is itself bind-mounted while the container is running. File managers that implement deletion by moving the root to trash can leave the active container attached to an orphaned directory.
If System Health reports output-root not_found, verify the host directory and restart the container to recreate the mount namespace. For storage_full, free capacity without replacing the directory; the gate can recover on a later probe. See Storage and Capacity and the FAQ.
Stop, Update, and Remove
# Stop while keeping data
docker compose stop
# Start again
docker compose up -dUse Upgrade and Rollback before changing VERSION. docker compose down removes containers and the network but leaves bind-mounted host data; verify exact paths before deleting any host directory.
For an Internet-facing host — including reverse proxy, TLS, secure cookies, and network hardening — follow Production Deployment and Security instead of publishing the example ports directly.
This section is now in NVIDIA GPU.