Nomploy Nomad Packs

← All packs

lms v0.1.0

Media

LMS (Lightweight Music Server) — a self-hosted, Subsonic-compatible music streaming server with smart playlists and recommendations, built to be light on resources. Deployed as a single host-networked Nomad service.

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

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

2 tasks http 5082 2 volumes image epoupon/lms:latest tracks :latest image bumped today
Variables 9
values.hcl

Save as values.hcl, edit, then run:

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

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

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

# The LMS container image. Pin a tag in production.
image = "epoupon/lms:latest"

# Host port for the LMS web UI.
port = 5082

# Named volume mounted at /var/lms (database, config and caches).
data_volume = "lms_data"

# Named volume mounted at /music (read-only) — your music library.
music_volume = "lms_music"

# 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
"lms"
The name of the Nomad job.
namespace string
"default"
The Nomad namespace to deploy into.
datacenters list
["*"]
The datacenters to deploy to.
image string
"epoupon/lms:latest"
The LMS container image. Pin a tag in production.
port number
5082
Host port for the LMS web UI.
data_volume string
"lms_data"
Named volume mounted at /var/lms (database, config and caches).
music_volume string
"lms_music"
Named volume mounted at /music (read-only) — your music library.
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: lms_datalms_music

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/lms_data/_data \
  /var/lib/docker/volumes/lms_music/_data

rclone (sync to S3/R2)

rclone sync /var/lib/docker/volumes/lms_data/_data backup:<bucket>/lms_data
rclone sync /var/lib/docker/volumes/lms_music/_data backup:<bucket>/lms_music

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

lms

LMS (Lightweight Music Server) — a self-hosted, Subsonic/OpenSubsonic-compatible music streaming server built to be light on resources. It offers smart playlists, similarity-based recommendations, scrobbling and multi-user support, and works with any Subsonic client.

Single host-networked Nomad service with a working-data volume and a read-only music volume.

Deploy

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

Configure

Variable Default Description
port 5082 Web UI / Subsonic API port.
image epoupon/lms:latest Container image. Pin a tag in production.
data_volume lms_data /var/lms — database, config and caches.
music_volume lms_music /music (read-only) — your music library.
resources { cpu = 300, memory = 256 } Task resources.

On first launch, create the admin account and set the media folder to /music in settings, then scan. A prestart init task makes the working directory writable. Behind a reverse proxy, remember to trust the proxy so client IPs are read correctly. Pin the job to the node holding the volumes with constraints. A lightweight alternative to navidrome / gonic.