Nomploy Nomad Packs

← All packs

eventstore v0.1.0

Databases

EventStoreDB (Kurrent) — a purpose-built database for event sourcing: an append-only log of immutable events with streams, subscriptions, and built-in projections, plus a web admin UI. Deployed as a host-networked single-node Nomad service (insecure/dev mode) with persistent data and log volumes.

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

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

1 task http 2113 2 volumes image eventstore/eventstore:lts pinned :lts image bumped today
Variables 10
values.hcl

Save as values.hcl, edit, then run:

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

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

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

# The EventStoreDB container image. Pin a tag in production.
image = "eventstore/eventstore:lts"

# Host port for the HTTP API, gRPC clients, and web admin UI (EVENTSTORE_HTTP_PORT).
port = 2113

# Which projections to run (EVENTSTORE_RUN_PROJECTIONS): None, System, or All.
run_projections = "All"

# Named volume for event data (/var/lib/eventstore). Holds all streams and events.
data_volume = "eventstore_data"

# Named volume for logs (/var/log/eventstore).
logs_volume = "eventstore_logs"

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

# Resources for the EventStoreDB task.
resources = {
    cpu    = 500
    memory = 512
  }
NameTypeDefaultDescription
job_name string
"eventstore"
The name of the Nomad job.
namespace string
"default"
The Nomad namespace to deploy into.
datacenters list
["*"]
The datacenters to deploy to.
image string
"eventstore/eventstore:lts"
The EventStoreDB container image. Pin a tag in production.
port number
2113
Host port for the HTTP API, gRPC clients, and web admin UI (EVENTSTORE_HTTP_PORT).
run_projections string
"All"
Which projections to run (EVENTSTORE_RUN_PROJECTIONS): None, System, or All.
data_volume string
"eventstore_data"
Named volume for event data (/var/lib/eventstore). Holds all streams and events.
logs_volume string
"eventstore_logs"
Named volume for logs (/var/log/eventstore).
constraints list
[]
Placement constraints. Pin to the node holding the volumes. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
resources object
{
    cpu    = 500
    memory = 512
  }
Resources for the EventStoreDB task.
Back up this pack

This pack stores data in 2 Docker named volumes: eventstore_dataeventstore_logs

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/eventstore_data/_data \
  /var/lib/docker/volumes/eventstore_logs/_data

rclone (sync to S3/R2)

rclone sync /var/lib/docker/volumes/eventstore_data/_data backup:<bucket>/eventstore_data
rclone sync /var/lib/docker/volumes/eventstore_logs/_data backup:<bucket>/eventstore_logs

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

eventstore

EventStoreDB (Kurrent) — a database purpose-built for event sourcing. Store an append-only log of immutable events organized into streams, consume them with catch-up and persistent subscriptions, and derive read models with built-in projections. Ships a web admin UI and gRPC SDKs for many languages.

Single host-networked node in insecure/dev mode, with persistent data and log volumes.

Deploy

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

Configure

Variable Default Description
port 2113 HTTP API / gRPC / admin UI port.
run_projections All EVENTSTORE_RUN_PROJECTIONS: None, System, or All.
data_volume eventstore_data /var/lib/eventstore — all streams and events.
logs_volume eventstore_logs /var/log/eventstore.
image eventstore/eventstore:lts Container image. Pin a tag in production.
resources { cpu = 500, memory = 512 } Task resources.

Open the admin UI at http://<node-ip>:2113; connect SDKs with esdb://<node-ip>:2113?tls=false. This runs single-node and insecure (no TLS or auth) for easy self-hosting — keep it on an internal network, or configure certificates and a cluster for production. Pin the job to the node holding the volumes with constraints.