Nomploy Nomad Packs

← All packs

jdownloader2 v0.1.0

Media

JDownloader 2 — a powerful download manager with a browser-streamed GUI: handles direct links, one-click hosters, captcha assistance and link decryption. Deployed as a single host-networked Nomad service.

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

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

1 task http 5800 2 volumes image jlesage/jdownloader-2:latest tracks :latest image bumped today
Variables 12
values.hcl

Save as values.hcl, edit, then run:

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

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

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

# The JDownloader 2 container image. Pin a tag in production.
image = "jlesage/jdownloader-2:latest"

# Host port for the browser-streamed GUI (WEB_LISTENING_PORT).
port = 5800

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

# Named volume mounted at /output — downloaded files.
output_volume = "jdownloader2_output"

# User ID that owns the files (USER_ID).
user_id = 1000

# Group ID that owns the files (GROUP_ID).
group_id = 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
"jdownloader2"
The name of the Nomad job.
namespace string
"default"
The Nomad namespace to deploy into.
datacenters list
["*"]
The datacenters to deploy to.
image string
"jlesage/jdownloader-2:latest"
The JDownloader 2 container image. Pin a tag in production.
port number
5800
Host port for the browser-streamed GUI (WEB_LISTENING_PORT).
data_volume string
"jdownloader2_data"
Named volume mounted at /config (application state and settings).
output_volume string
"jdownloader2_output"
Named volume mounted at /output — downloaded files.
user_id number
1000
User ID that owns the files (USER_ID).
group_id number
1000
Group ID that owns the files (GROUP_ID).
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: jdownloader2_datajdownloader2_output

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/jdownloader2_data/_data \
  /var/lib/docker/volumes/jdownloader2_output/_data

rclone (sync to S3/R2)

rclone sync /var/lib/docker/volumes/jdownloader2_data/_data backup:<bucket>/jdownloader2_data
rclone sync /var/lib/docker/volumes/jdownloader2_output/_data backup:<bucket>/jdownloader2_output

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

jdownloader2

JDownloader 2 — a powerful, cross-platform download manager. It grabs direct links and one-click-hoster links, handles link decryption and captcha assistance, resumes and parallelizes downloads, and can be driven remotely via My.JDownloader. This pack runs it as a browser-streamed GUI (no VNC client needed).

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

Deploy

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

Configure

Variable Default Description
port 5800 Browser GUI port (WEB_LISTENING_PORT).
image jlesage/jdownloader-2:latest Container image. Pin a tag in production.
data_volume jdownloader2_data /config — application state and settings.
output_volume jdownloader2_output /output — downloaded files.
user_id / group_id 1000 / 1000 File ownership (USER_ID/GROUP_ID).
tz UTC Container timezone (TZ).
resources { cpu = 300, memory = 256 } Task resources.

Open the GUI in your browser and (optionally) sign in with a My.JDownloader account for remote control. The GUI has no auth by default — put it behind an authenticating reverse proxy over TLS if exposed. Pin the job to the node holding the volumes with constraints.