Nomploy Nomad Packs

← All packs

remark42 v0.1.0

Dev tools

Remark42 — a lightweight, privacy-focused commenting engine you can embed on any website (a self-hosted Disqus alternative). Deployed as a single host-networked Nomad service.

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

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

1 task http 8080 1 volume image umputun/remark42:latest tracks :latest image bumped today
Variables 12
values.hcl

Save as values.hcl, edit, then run:

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

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

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

# The Remark42 container image. Pin a tag in production.
image = "umputun/remark42:latest"

# Host port for Remark42.
port = 8080

# Public URL where Remark42 is served (required), e.g. https://comments.example.com.
remark_url = "http://localhost:8080"

# Secret key used to sign auth tokens. CHANGE THIS to a long random value.
secret = "change_me_to_a_long_random_secret_0000000000000000"

# Site identifier(s) this instance serves comments for.
site = "remark"

# Allow anonymous commenting (true/false).
auth_anon = "true"

# Named volume for comments and backups (/srv/var).
data_volume = "remark42_data"

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

# The task resources.
resources = {
    cpu    = 200
    memory = 128
  }
NameTypeDefaultDescription
job_name string
"remark42"
The name of the Nomad job.
namespace string
"default"
The Nomad namespace to deploy into.
datacenters list
["*"]
The datacenters to deploy to.
image string
"umputun/remark42:latest"
The Remark42 container image. Pin a tag in production.
port number
8080
Host port for Remark42.
remark_url string
"http://localhost:8080"
Public URL where Remark42 is served (required), e.g. https://comments.example.com.
secret set me string
"change_me_to_a_long_random_secret_0000000000000000"
Secret key used to sign auth tokens. CHANGE THIS to a long random value.
site string
"remark"
Site identifier(s) this instance serves comments for.
auth_anon string
"true"
Allow anonymous commenting (true/false).
data_volume string
"remark42_data"
Named volume for comments and backups (/srv/var).
constraints list
[]
Placement constraints. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
resources object
{
    cpu    = 200
    memory = 128
  }
The task resources.
Back up this pack

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

rclone (sync to S3/R2)

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

remark42

Remark42 is a lightweight, privacy-focused commenting engine you can embed on any website or blog — a self-hosted alternative to Disqus. It supports anonymous and social logins (GitHub, Google, Twitter, Microsoft, Apple and more), threaded discussions, voting, moderation, email notifications, image uploads and import/export. It's tiny: typically well under 100 MB of RAM.

This pack runs Remark42 as a single host-networked Nomad service backed by its embedded BoltDB store.

Deploy

nomad-pack run remark42 --registry=nomploy \
  --var remark_url=https://comments.example.com \
  --var secret=$(openssl rand -hex 24)

Then embed the widget on your pages (see the Remark42 docs for the script snippet), pointing host at this instance and site_id at your site.

Configuration

Variable Default Description
image umputun/remark42:latest Container image (pin a tag in production).
port 8080 Host port.
remark_url http://localhost:8080 Public URL Remark42 is served from.
secret placeholder Auth-token signing secret — change this.
site remark Site identifier the instance serves.
auth_anon true Allow anonymous commenting.
data_volume remark42_data Volume for comments and backups (/srv/var).
resources 200 MHz / 128 MB CPU and memory for the task.

Comments and backups persist in data_volume. Enable social login and set admins via the standard AUTH_* and ADMIN_* environment variables.