Owncast — a self-hosted live streaming and chat server, an open-source alternative to Twitch/YouTube Live: stream over RTMP and viewers watch on your own web page with built-in chat. Deployed as a single host-networked Nomad service on SQLite with a data volume.
Needs nomad-pack on PATH. The script only adds the nomploy registry and runs this pack.
Source ↗ Project ↗ ★ 11.6k ⚑ Report an issue
Save as values.hcl, edit, then run:
# The name of the Nomad job.
job_name = "owncast"
# The Nomad namespace to deploy into.
namespace = "default"
# The datacenters to deploy to.
datacenters = ["*"]
# The Owncast container image. Pin a tag in production.
image = "owncast/owncast:latest"
# Host port for the web player, chat, and admin.
port = 8080
# Host port for RTMP ingest (point your broadcaster here).
rtmp_port = 1935
# Named volume for the SQLite config, HLS segments, and logs (/app/data).
data_volume = "owncast_data"
# Placement constraints. Pin to the node holding the volume. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
constraints = []
# The task resources (transcoding is CPU-heavy).
resources = {
cpu = 1000
memory = 512
}
| Name | Type | Default | Description |
|---|---|---|---|
| job_name | string | "owncast" | The name of the Nomad job. |
| namespace | string | "default" | The Nomad namespace to deploy into. |
| datacenters | list | ["*"] | The datacenters to deploy to. |
| image | string | "owncast/owncast:latest" | The Owncast container image. Pin a tag in production. |
| port | number | 8080 | Host port for the web player, chat, and admin. |
| rtmp_port | number | 1935 | Host port for RTMP ingest (point your broadcaster here). |
| data_volume | string | "owncast_data" | Named volume for the SQLite config, HLS segments, and logs (/app/data). |
| constraints | list | [] | Placement constraints. Pin to the node holding the volume. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true". |
| resources | object | {
cpu = 1000
memory = 512
} | The task resources (transcoding is CPU-heavy). |
No variables match.
This pack stores data in one Docker named volume:
owncast_data
restic
# Run on the node hosting this pack. Point restic at your repo first: # export RESTIC_REPOSITORY="s3:https://<account>.r2.cloudflarestorage.com/<bucket>" # export RESTIC_PASSWORD="<repo-password>" # export AWS_ACCESS_KEY_ID=<key> AWS_SECRET_ACCESS_KEY=<secret> restic backup \ /var/lib/docker/volumes/owncast_data/_data
rclone (sync to S3/R2)
rclone sync /var/lib/docker/volumes/owncast_data/_data backup:<bucket>/owncast_data
Paths assume the default Docker volume location (/var/lib/docker/volumes). Restore by stopping the job, restoring files into the same volume, and re-running the pack.
Owncast — a self-hosted live streaming and chat server; an open-source alternative to Twitch/YouTube Live. Stream over RTMP and viewers watch on your own page with built-in chat.
Single host-networked Nomad service on SQLite with a data volume.
nomad-pack registry add nomploy https://github.com/Nomploy/nomad-packs
nomad-pack run owncast --registry=nomploy
| Variable | Default | Description |
|---|---|---|
port |
8080 |
Web player / chat / admin. |
rtmp_port |
1935 |
RTMP ingest. |
data_volume |
owncast_data |
/app/data — config, HLS segments, logs. |
image |
owncast/owncast:latest |
Container image. Pin a tag in production. |
resources |
{ cpu = 1000, memory = 512 } |
Task resources (transcoding is CPU-heavy). |
Admin is at /admin (default admin / abc123 — change it, and set your stream key). Point OBS
at rtmp://<node-ip>:1935/live. Pin the job to the node holding the volume with constraints.