Nomploy Nomad Packs

← All packs

jellystat v0.1.0

Media

Jellystat — a free, open-source statistics dashboard for Jellyfin: watch history, most-active users, library growth, playback stats, and backups. Deployed as an all-in-one host-networked Nomad job: the Jellystat app plus a PostgreSQL sidecar with a persistent database volume.

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

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

2 tasks http 3000db 5432 1 volume image cyfershepard/jellystat:latest tracks :latest image bumped today
Variables 13
values.hcl

Save as values.hcl, edit, then run:

nomad-pack run jellystat -f values.hcl --registry nomploy
# The name of the Nomad job.
job_name = "jellystat"

# The Nomad namespace to deploy into.
namespace = "default"

# The datacenters to deploy to.
datacenters = ["*"]

# The Jellystat app image. Pin a tag in production.
image = "cyfershepard/jellystat:latest"

# The PostgreSQL image for the bundled database.
postgres_image = "postgres:16-alpine"

# Host port for the Jellystat web app. The container listens on 3000.
port = 3000

# Host port for the co-located PostgreSQL.
db_port = 5432

# Password for the Jellystat PostgreSQL user.
db_password = "jellystat"

# Secret used to sign auth tokens (JWT_SECRET). CHANGE THIS — generate with: openssl rand -hex 32.
jwt_secret = "change-me-to-a-random-secret"

# Named volume for PostgreSQL data (/var/lib/postgresql/data). Holds all collected statistics.
db_data_volume = "jellystat_db_data"

# Placement constraints. Pin to the node holding the volume. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
constraints = []

# Resources for the Jellystat app task.
resources = {
    cpu    = 500
    memory = 512
  }

# Resources for the PostgreSQL task.
postgres_resources = {
    cpu    = 300
    memory = 256
  }
NameTypeDefaultDescription
job_name string
"jellystat"
The name of the Nomad job.
namespace string
"default"
The Nomad namespace to deploy into.
datacenters list
["*"]
The datacenters to deploy to.
image string
"cyfershepard/jellystat:latest"
The Jellystat app image. Pin a tag in production.
postgres_image string
"postgres:16-alpine"
The PostgreSQL image for the bundled database.
port number
3000
Host port for the Jellystat web app. The container listens on 3000.
db_port number
5432
Host port for the co-located PostgreSQL.
db_password key string
"jellystat"
Password for the Jellystat PostgreSQL user.
jwt_secret set me string
"change-me-to-a-random-secret"
Secret used to sign auth tokens (JWT_SECRET). CHANGE THIS — generate with: openssl rand -hex 32.
db_data_volume string
"jellystat_db_data"
Named volume for PostgreSQL data (/var/lib/postgresql/data). Holds all collected statistics.
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    = 500
    memory = 512
  }
Resources for the Jellystat app task.
postgres_resources object
{
    cpu    = 300
    memory = 256
  }
Resources for the PostgreSQL task.
Back up this pack

This pack stores data in one Docker named volume: jellystat_db_data

⚠ This pack bundles a database. A cold copy of the volume can be inconsistent — for a reliable backup, dump the DB (pg_dump / mysqldump) or stop the job while backing up.

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/jellystat_db_data/_data

rclone (sync to S3/R2)

rclone sync /var/lib/docker/volumes/jellystat_db_data/_data backup:<bucket>/jellystat_db_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

jellystat

Jellystat — a free, open-source statistics dashboard for Jellyfin. Watch history, most-active users, library growth, playback and transcode stats, and scheduled backups — the Jellyfin counterpart to Tautulli for Plex.

All-in-one host-networked Nomad job: the Jellystat app plus a PostgreSQL sidecar.

Deploy

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

Configure

Variable Default Description
port 3000 Web app port. The container listens on 3000.
jwt_secret change-me-… JWT_SECRET — signs auth tokens. Change it (openssl rand -hex 32).
db_password jellystat PostgreSQL password.
db_port 5432 Host port for the bundled PostgreSQL.
db_data_volume jellystat_db_data /var/lib/postgresql/data — collected statistics.
image cyfershepard/jellystat:latest App image. Pin a tag in production.
resources / postgres_resources see variables.hcl Per-task resources.

On first run, create the admin account and connect Jellystat to your Jellyfin server (URL + API key). Requires a Jellyfin server to monitor (pairs with the jellyfin pack). Keep JWT_SECRET stable. Serves plain HTTP — front it with a reverse proxy for TLS. Pin the job to the node holding the volume with constraints.