Nomploy Nomad Packs

← All packs

slash v0.1.0

Productivity

Slash — a self-hosted link shortener and bookmark hub with shareable short links, visits stats and a browser extension. Deployed as a single host-networked Nomad service.

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

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

1 task http 5231 1 volume image yourselfhosted/slash:latest tracks :latest image bumped today
Variables 8
values.hcl

Save as values.hcl, edit, then run:

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

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

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

# The Slash container image. Pin a tag in production.
image = "yourselfhosted/slash:latest"

# Host port for the Slash web UI.
port = 5231

# Named volume mounted at /var/opt/slash.
data_volume = "slash_data"

# 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
"slash"
The name of the Nomad job.
namespace string
"default"
The Nomad namespace to deploy into.
datacenters list
["*"]
The datacenters to deploy to.
image string
"yourselfhosted/slash:latest"
The Slash container image. Pin a tag in production.
port number
5231
Host port for the Slash web UI.
data_volume string
"slash_data"
Named volume mounted at /var/opt/slash.
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 one Docker named volume: slash_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/slash_data/_data

rclone (sync to S3/R2)

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

slash

Slash — a self-hosted link shortener and bookmark hub. Create memorable short links (s/my-link) and organize shared bookmarks into collections, with visit analytics, access control and a browser extension. A tidy replacement for Bitly plus a team start page.

Single host-networked Nomad service with a persistent SQLite volume.

Deploy

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

Configure

Variable Default Description
port 5231 Web UI port.
image yourselfhosted/slash:latest Container image. Pin a tag in production.
data_volume slash_data /var/opt/slash — the SQLite database.
resources { cpu = 300, memory = 256 } Task resources.

The first account you create becomes the admin. Pin the job to the node holding the volume with constraints, and put Slash behind a reverse proxy for a clean short-link domain.