Nomploy Nomad Packs

← All packs

maloja v0.1.0

Apps

Maloja — a self-hosted music scrobble database that builds personal listening statistics and charts from your plays (a private Last.fm alternative). Accepts scrobbles from many players via a simple API. Deployed as a host-networked Nomad service with a persistent data volume.

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

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

1 task http 42010 1 volume image krateng/maloja:latest tracks :latest image bumped today
Variables 9
values.hcl

Save as values.hcl, edit, then run:

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

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

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

# The Maloja container image. Pin a tag in production.
image = "krateng/maloja:latest"

# Host port for the Maloja web UI / API. The container listens on 42010.
port = 42010

# Admin password set on first boot (MALOJA_FORCE_PASSWORD). CHANGE THIS.
force_password = "change-me-please"

# Named volume for Maloja data (/mljdata): the scrobble database, settings, and API keys.
data_volume = "maloja_data"

# Placement constraints. Pin to the node holding the volume. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
constraints = []

# Resources for the Maloja task.
resources = {
    cpu    = 500
    memory = 512
  }
NameTypeDefaultDescription
job_name string
"maloja"
The name of the Nomad job.
namespace string
"default"
The Nomad namespace to deploy into.
datacenters list
["*"]
The datacenters to deploy to.
image string
"krateng/maloja:latest"
The Maloja container image. Pin a tag in production.
port number
42010
Host port for the Maloja web UI / API. The container listens on 42010.
force_password set me string
"change-me-please"
Admin password set on first boot (MALOJA_FORCE_PASSWORD). CHANGE THIS.
data_volume string
"maloja_data"
Named volume for Maloja data (/mljdata): the scrobble database, settings, and API keys.
constraints list
[]
Placement constraints. Pin to the node holding the volume. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
resources object
{
    cpu    = 500
    memory = 512
  }
Resources for the Maloja task.
Back up this pack

This pack stores data in one Docker named volume: maloja_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/maloja_data/_data

rclone (sync to S3/R2)

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

maloja

Maloja — a self-hosted music scrobble database. It records what you listen to and builds personal statistics and charts (top artists, tracks, listening history) — a private, no-tracking alternative to Last.fm. Accepts scrobbles from many players and apps via a simple API, including a Last.fm-compatible endpoint.

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

Deploy

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

Configure

Variable Default Description
port 42010 Web UI / API port. The container listens on 42010.
force_password change-me-please Admin password set on first boot (MALOJA_FORCE_PASSWORD). Change it.
data_volume maloja_data /mljdata — scrobble database, settings, API keys.
image krateng/maloja:latest Container image. Pin a tag in production.
resources { cpu = 500, memory = 512 } Task resources.

Log in with your password, create an API key under Settings, and point your scrobbler at http://<node-ip>:42010. Many players support Maloja directly; others can use a Last.fm-compatible bridge. Serves plain HTTP — front it with a reverse proxy for TLS. Pin the job to the node holding the volume with constraints.