Nomploy Nomad Packs

← All packs

owncast v0.1.0

Apps

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.

nomad-pack run owncast --registry nomploy
…or one line (add registry + run)
curl -fsSL https://packs.nomploy.com/install.sh | sh -s -- owncast

Needs nomad-pack on PATH. The script only adds the nomploy registry and runs this pack.

1 task http 8080rtmp 1935 1 volume image owncast/owncast:latest tracks :latest image bumped today
Variables 9
values.hcl

Save as values.hcl, edit, then run:

nomad-pack run owncast -f values.hcl --registry nomploy
# 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
  }
NameTypeDefaultDescription
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).
Back up this pack

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.

Readme

owncast

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.

Deploy

nomad-pack registry add nomploy https://github.com/Nomploy/nomad-packs
nomad-pack run owncast --registry=nomploy

Configure

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 / abc123change 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.