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.
Needs nomad-pack on PATH. The script only adds the nomploy registry and runs this pack.
Source ↗ Project ↗ ★ 5.9k ⚑ Report an issue
Save as values.hcl, edit, then run:
# 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
}
| Name | Type | Default | Description |
|---|---|---|---|
| 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. |
No variables match.
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.
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.
nomad-pack registry add nomploy https://github.com/Nomploy/nomad-packs
nomad-pack run eventstore --registry=nomploy
| 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.