Nomploy Nomad Packs

← All packs

rallly v0.1.0

Apps

Rallly — a self-hosted meeting scheduling and group-poll tool (a Doodle alternative): create date/time polls, collect availability, and pick the best slot without the back-and-forth. Deployed as an all-in-one host-networked Nomad job: a PostgreSQL sidecar plus the Rallly app with a persistent database volume.

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

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

2 tasks http 3010db 5432 1 volume image ghcr.io/lukevella/rallly:latest tracks :latest image bumped today
Variables 15
values.hcl

Save as values.hcl, edit, then run:

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

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

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

# The Rallly container image. Pin a tag in production.
image = "ghcr.io/lukevella/rallly:latest"

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

# Host port for the Rallly web UI.
port = 3010

# Host port for the co-located PostgreSQL.
db_port = 5432

# Password for the Rallly PostgreSQL user.
db_password = "rallly"

# Public base URL Rallly is served at (NEXT_PUBLIC_BASE_URL). Empty = http://localhost:<port>. Set this to the real host/domain — links in emails use it.
base_url = ""

# Secret used to encrypt user sessions (SECRET_PASSWORD). Must be at least 32 characters. Generate with: openssl rand -hex 32.
secret_password = "change-me-to-a-random-32-char-secret-value"

# From/support address used for outgoing email and shown to users (SUPPORT_EMAIL).
support_email = "support@nomploy.local"

# Named volume for PostgreSQL data (/var/lib/postgresql/data). Holds all polls.
db_data_volume = "rallly_db_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 Rallly app task.
resources = {
    cpu    = 500
    memory = 512
  }

# Resources for the PostgreSQL task.
postgres_resources = {
    cpu    = 300
    memory = 256
  }
NameTypeDefaultDescription
job_name string
"rallly"
The name of the Nomad job.
namespace string
"default"
The Nomad namespace to deploy into.
datacenters list
["*"]
The datacenters to deploy to.
image string
"ghcr.io/lukevella/rallly:latest"
The Rallly container image. Pin a tag in production.
postgres_image string
"postgres:16-alpine"
The PostgreSQL image for the bundled database.
port number
3010
Host port for the Rallly web UI.
db_port number
5432
Host port for the co-located PostgreSQL.
db_password key string
"rallly"
Password for the Rallly PostgreSQL user.
base_url string
""
Public base URL Rallly is served at (NEXT_PUBLIC_BASE_URL). Empty = http://localhost:<port>. Set this to the real host/domain — links in emails use it.
secret_password set me string
"change-me-to-a-random-32-char-secret-value"
Secret used to encrypt user sessions (SECRET_PASSWORD). Must be at least 32 characters. Generate with: openssl rand -hex 32.
support_email string
"support@nomploy.local"
From/support address used for outgoing email and shown to users (SUPPORT_EMAIL).
db_data_volume string
"rallly_db_data"
Named volume for PostgreSQL data (/var/lib/postgresql/data). Holds all polls.
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 Rallly app task.
postgres_resources object
{
    cpu    = 300
    memory = 256
  }
Resources for the PostgreSQL task.
Back up this pack

This pack stores data in one Docker named volume: rallly_db_data

⚠ 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/rallly_db_data/_data

rclone (sync to S3/R2)

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

rallly

Rallly — a self-hosted scheduling tool for finding the best time to meet. Create a poll with candidate dates/times, share a link, collect everyone's availability, and lock in the winning slot. A privacy-friendly Doodle alternative.

All-in-one host-networked Nomad job: a PostgreSQL sidecar plus the Rallly app. Database migrations run automatically on first boot.

Deploy

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

Configure

Variable Default Description
port 3010 Web UI port (PORT).
base_url ""http://localhost:<port> NEXT_PUBLIC_BASE_URL — set to your real domain; poll links and emails use it.
secret_password change-me-… SECRET_PASSWORD — encrypts sessions. Must be ≥ 32 chars (openssl rand -hex 32).
support_email support@nomploy.local SUPPORT_EMAIL — from/support address.
db_password rallly PostgreSQL password.
db_port 5432 Host port for the bundled PostgreSQL.
db_data_volume rallly_db_data /var/lib/postgresql/data — all polls.
resources / postgres_resources see variables.hcl Per-task resources.

To send email invitations, add SMTP env vars (SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PWD, SMTP_SECURE, NOREPLY_EMAIL) to the rallly task. Pin the job to the node holding the volume with constraints. Serves plain HTTP — front it with a reverse proxy for TLS.