Nomploy Nomad Packs

← All packs

listmonk v0.1.0

Productivity

listmonk — a self-hosted, high-performance newsletter and mailing-list manager (a Mailchimp / Sendgrid alternative). Deployed as an all-in-one host-networked Nomad job (PostgreSQL + app).

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

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

2 tasks http 9000db 5432 2 volumes image listmonk/listmonk:latest tracks :latest image bumped today
Variables 15
values.hcl

Save as values.hcl, edit, then run:

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

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

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

# The listmonk container image. Pin a tag in production.
image = "listmonk/listmonk:latest"

# The PostgreSQL image for the bundled database.
postgres_image = "postgres:17-alpine"

# Host port for the listmonk web UI.
port = 9000

# Host port for the bundled PostgreSQL.
db_port = 5432

# Password for the bundled PostgreSQL. CHANGE THIS.
db_password = "listmonk_change_me"

# Super-admin username created on first start.
admin_user = "admin"

# Super-admin password created on first start. CHANGE THIS (min 8 chars).
admin_password = "listmonk_admin_change_me"

# Named volume for PostgreSQL data.
db_data_volume = "listmonk_db_data"

# Named volume for uploaded media (/listmonk/uploads).
uploads_volume = "listmonk_uploads"

# Placement constraints. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
constraints = []

# Resources for the listmonk app task.
resources = {
    cpu    = 500
    memory = 512
  }

# Resources for the bundled PostgreSQL task.
db_resources = {
    cpu    = 500
    memory = 512
  }
NameTypeDefaultDescription
job_name string
"listmonk"
The name of the Nomad job.
namespace string
"default"
The Nomad namespace to deploy into.
datacenters list
["*"]
The datacenters to deploy to.
image string
"listmonk/listmonk:latest"
The listmonk container image. Pin a tag in production.
postgres_image string
"postgres:17-alpine"
The PostgreSQL image for the bundled database.
port number
9000
Host port for the listmonk web UI.
db_port number
5432
Host port for the bundled PostgreSQL.
db_password set me string
"listmonk_change_me"
Password for the bundled PostgreSQL. CHANGE THIS.
admin_user string
"admin"
Super-admin username created on first start.
admin_password set me string
"listmonk_admin_change_me"
Super-admin password created on first start. CHANGE THIS (min 8 chars).
db_data_volume string
"listmonk_db_data"
Named volume for PostgreSQL data.
uploads_volume string
"listmonk_uploads"
Named volume for uploaded media (/listmonk/uploads).
constraints list
[]
Placement constraints. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
resources object
{
    cpu    = 500
    memory = 512
  }
Resources for the listmonk app task.
db_resources object
{
    cpu    = 500
    memory = 512
  }
Resources for the bundled PostgreSQL task.
Back up this pack

This pack stores data in 2 Docker named volumes: listmonk_db_datalistmonk_uploads

⚠ This pack bundles a database. A cold copy of the volume can be inconsistent — for a reliable backup, dump the DB (pg_dump / mysqldump) or stop the job while backing up.

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/listmonk_db_data/_data \
  /var/lib/docker/volumes/listmonk_uploads/_data

rclone (sync to S3/R2)

rclone sync /var/lib/docker/volumes/listmonk_db_data/_data backup:<bucket>/listmonk_db_data
rclone sync /var/lib/docker/volumes/listmonk_uploads/_data backup:<bucket>/listmonk_uploads

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

listmonk

listmonk is a self-hosted, high-performance newsletter and mailing-list manager — a self-hosted alternative to Mailchimp, Sendgrid campaigns or Substack. It handles millions of subscribers, multi-threaded delivery to any SMTP server, list segmentation with SQL queries, templated HTML campaigns, subscriber import/export and a built-in analytics dashboard.

This pack deploys listmonk all-in-one as a single host-networked Nomad job: PostgreSQL (bundled as a prestart sidecar) plus the listmonk app. The database schema is installed automatically on first start and migrated on each upgrade.

Deploy

nomad-pack run listmonk --registry=nomploy \
  --var db_password=$(openssl rand -hex 16) \
  --var admin_password=$(openssl rand -hex 12)

Open http://<node-ip>:9000 and sign in with the admin user/password you set.

Configuration

Variable Default Description
image listmonk/listmonk:latest App image (pin a tag in production).
postgres_image postgres:17-alpine Bundled PostgreSQL image.
port 9000 Host port for the web UI.
db_port 5432 Host port for PostgreSQL.
db_password listmonk_change_me PostgreSQL password — change this.
admin_user admin Super-admin username created on first start.
admin_password placeholder Super-admin password — change this.
resources 500 MHz / 512 MB App task resources.

Data persists in separate volumes for PostgreSQL and uploaded media. Configure your SMTP server under Settings to start sending campaigns.