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.
Needs nomad-pack on PATH. The script only adds the nomploy registry and runs this pack.
Source ↗ Project ↗ ★ 1.7k ⚑ Report an issue
Save as values.hcl, edit, then run:
# 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
}
| Name | Type | Default | Description |
|---|---|---|---|
| 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. |
No variables match.
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.
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.
nomad-pack registry add nomploy https://github.com/Nomploy/nomad-packs
nomad-pack run lms --registry=nomploy
| 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
/musicin 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 withconstraints. A lightweight alternative to navidrome / gonic.