Invidious — an open-source, privacy-focused alternative front-end for YouTube: watch, search and subscribe without ads, tracking or JavaScript requirements. Deployed as an all-in-one host-networked Nomad job (PostgreSQL + app).
Needs nomad-pack on PATH. The script only adds the nomploy registry and runs this pack.
Source ↗ Project ↗ ★ 24.8k ⚑ Report an issue
Save as values.hcl, edit, then run:
# The name of the Nomad job.
job_name = "invidious"
# The Nomad namespace to deploy into.
namespace = "default"
# The datacenters to deploy to.
datacenters = ["*"]
# The Invidious container image. Pin a tag in production.
image = "quay.io/invidious/invidious:latest"
# The PostgreSQL image for the bundled database.
postgres_image = "postgres:14-alpine"
# Host port for the Invidious web UI.
port = 3000
# Host port for the bundled PostgreSQL.
db_port = 5432
# Password for the bundled PostgreSQL. CHANGE THIS.
db_password = "invidious_change_me"
# Random key used to sign tokens/sessions. CHANGE THIS.
hmac_key = "change_me_to_a_random_hmac_key_0000"
# Named volume for PostgreSQL data.
db_data_volume = "invidious_db_data"
# Placement constraints. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
constraints = []
# Resources for the Invidious app task.
resources = {
cpu = 1000
memory = 1024
}
# Resources for the bundled PostgreSQL task.
db_resources = {
cpu = 500
memory = 512
}
| Name | Type | Default | Description |
|---|---|---|---|
| job_name | string | "invidious" | The name of the Nomad job. |
| namespace | string | "default" | The Nomad namespace to deploy into. |
| datacenters | list | ["*"] | The datacenters to deploy to. |
| image | string | "quay.io/invidious/invidious:latest" | The Invidious container image. Pin a tag in production. |
| postgres_image | string | "postgres:14-alpine" | The PostgreSQL image for the bundled database. |
| port | number | 3000 | Host port for the Invidious web UI. |
| db_port | number | 5432 | Host port for the bundled PostgreSQL. |
| db_password set me | string | "invidious_change_me" | Password for the bundled PostgreSQL. CHANGE THIS. |
| hmac_key set me | string | "change_me_to_a_random_hmac_key_0000" | Random key used to sign tokens/sessions. CHANGE THIS. |
| db_data_volume | string | "invidious_db_data" | Named volume for PostgreSQL data. |
| constraints | list | [] | Placement constraints. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true". |
| resources | object | {
cpu = 1000
memory = 1024
} | Resources for the Invidious app task. |
| db_resources | object | {
cpu = 500
memory = 512
} | Resources for the bundled PostgreSQL task. |
No variables match.
This pack stores data in one Docker named volume:
invidious_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/invidious_db_data/_data
rclone (sync to S3/R2)
rclone sync /var/lib/docker/volumes/invidious_db_data/_data backup:<bucket>/invidious_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.
Invidious is an open-source, privacy-respecting alternative front-end for YouTube. Watch and search videos, subscribe to channels and build playlists without ads, tracking, or Google's JavaScript — with lightweight pages, audio-only mode, and RSS feeds for channels.
This pack deploys Invidious all-in-one as a single host-networked Nomad job: PostgreSQL (bundled as a prestart sidecar) plus the Invidious app. The database schema is created automatically on first start.
nomad-pack run invidious --registry=nomploy \
--var db_password=$(openssl rand -hex 16) \
--var hmac_key=$(openssl rand -hex 16)
Open http://<node-ip>:3000.
| Variable | Default | Description |
|---|---|---|
image |
quay.io/invidious/invidious:latest |
App image (pin a tag in production). |
postgres_image |
postgres:14-alpine |
Bundled PostgreSQL image. |
port |
3000 |
Host port for the web UI. |
db_password |
invidious_change_me |
PostgreSQL password — change this. |
hmac_key |
placeholder | Token-signing key — change this. |
resources |
1000 MHz / 1024 MB | App task resources. |
Heads up: YouTube actively rate-limits/blocks datacenter IPs. A fresh instance works, but keeping a public instance reliable may require additional configuration (
po_token,visitor_data, or outbound proxies) — see the Invidious docs.
PostgreSQL data persists in db_data_volume.