Nomploy Nomad Packs

← All packs

deluge v0.1.0

Media

Deluge — a lightweight, full-featured BitTorrent client with a web UI and a rich plugin system. Deployed as a single host-networked Nomad service.

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

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

1 task http 8112peer 6881daemon 58846 2 volumes image lscr.io/linuxserver/deluge:latest tracks :latest image bumped today
Variables 14
values.hcl

Save as values.hcl, edit, then run:

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

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

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

# The Deluge container image. Pin a tag in production.
image = "lscr.io/linuxserver/deluge:latest"

# Host port for the Deluge web UI.
port = 8112

# BitTorrent peer port (TCP + UDP). Forward this on your router/firewall.
peer_port = 6881

# Deluge daemon port for thin-client (deluged RPC) connections.
daemon_port = 58846

# Named volume mounted at /config (settings and state).
data_volume = "deluge_data"

# Named volume mounted at /downloads — your downloads.
downloads_volume = "deluge_downloads"

# User ID that owns the files (PUID).
puid = 1000

# Group ID that owns the files (PGID).
pgid = 1000

# Container timezone (TZ), e.g. Europe/Bratislava.
tz = "UTC"

# Placement constraints. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
constraints = []

# The task resources.
resources = {
    cpu    = 300
    memory = 256
  }
NameTypeDefaultDescription
job_name string
"deluge"
The name of the Nomad job.
namespace string
"default"
The Nomad namespace to deploy into.
datacenters list
["*"]
The datacenters to deploy to.
image string
"lscr.io/linuxserver/deluge:latest"
The Deluge container image. Pin a tag in production.
port number
8112
Host port for the Deluge web UI.
peer_port number
6881
BitTorrent peer port (TCP + UDP). Forward this on your router/firewall.
daemon_port number
58846
Deluge daemon port for thin-client (deluged RPC) connections.
data_volume string
"deluge_data"
Named volume mounted at /config (settings and state).
downloads_volume string
"deluge_downloads"
Named volume mounted at /downloads — your downloads.
puid number
1000
User ID that owns the files (PUID).
pgid number
1000
Group ID that owns the files (PGID).
tz string
"UTC"
Container timezone (TZ), e.g. Europe/Bratislava.
constraints list
[]
Placement constraints. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
resources object
{
    cpu    = 300
    memory = 256
  }
The task resources.
Back up this pack

This pack stores data in 2 Docker named volumes: deluge_datadeluge_downloads

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/deluge_data/_data \
  /var/lib/docker/volumes/deluge_downloads/_data

rclone (sync to S3/R2)

rclone sync /var/lib/docker/volumes/deluge_data/_data backup:<bucket>/deluge_data
rclone sync /var/lib/docker/volumes/deluge_downloads/_data backup:<bucket>/deluge_downloads

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

deluge

Deluge — a lightweight, full-featured BitTorrent client with a web UI, a daemon for thin-client access, and a rich plugin system (labels, scheduler, auto-add and more). A solid download client for the *arr stack or standalone use.

Single host-networked Nomad service with config and downloads volumes.

Deploy

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

Configure

Variable Default Description
port 8112 Web UI port.
peer_port 6881 BitTorrent peer port (TCP + UDP). Forward it on your router.
daemon_port 58846 Deluge daemon (RPC) port for thin clients.
image lscr.io/linuxserver/deluge:latest Container image. Pin a tag in production.
data_volume deluge_data /config — settings and state.
downloads_volume deluge_downloads /downloads — your downloads.
puid / pgid 1000 / 1000 User/group that owns the files (PUID/PGID).
tz UTC Container timezone (TZ).
resources { cpu = 300, memory = 256 } Task resources.

Default web UI password is deluge — change it on first login. Pairs with prowlarr and the *arr apps; share the /downloads path so they can import. Pin the job to the node holding the volumes with constraints.