Skip to content
Docs
Request access

Self-host with Compose

Coming soon

Status: Coming soon: not in the release until its source is published.

Docker Compose will be the supported way to self-host NuraMesh. Coming soon: not in the release until its source is published. One stack on one machine runs the API server, the runner that executes runs, PostgreSQL and the web app. Nothing is published beyond the machine itself, and nothing is sent out.

  • Linux or macOS with Docker (Engine or Docker Desktop) and Compose v2.
  • The NuraMesh source with its Compose folder. The images are built on your machine; nothing is pulled from a registry of ours.
  • uv, Node 24 with pnpm, openssl and python3 for the build, and network access for the first build.
  • A team folder (Start from a template). The stack mounts it read-only.
  • Synthetic data only. Do not put real customer data in the stack yet: Data and privacy.
Service Role
postgres the NuraMesh store, PostgreSQL 16
migrate runs once at every start: applies database migrations before any other service starts
api the API server, with authentication on. It is never published; only web can reach it
runner runs the team’s code for runs started from the app or the API. One runner per database
retention every hour, deletes expired content and expired sessions
web the TLS listener on 127.0.0.1:8443 and the only way in
worker, temporal, temporal-db optional, off by default: durable runs on a Temporal development server, for evaluation only
  1. Create the secrets. The stack keeps each secret in its own file in a secrets folder next to the Compose file; the setup script prints which files it created and never a value.

  2. Copy the example environment file to .env and set the absolute path of your team folder in it.

  3. Build the images locally, then start the stack and wait until every service is healthy.

  4. Open https://127.0.0.1:8443. The certificate is self-signed, so the browser warns once.

  5. Create the first owner. No account exists at first. Make a one-time setup token in a terminal, from the Compose folder:

    Terminal window
    docker compose exec api nuramesh-env nuramesh auth new-setup-token --team /data/team

    The token is shown once, lives 24 hours and works once. Paste it on the app’s first screen.

Every operator command in the stack goes through nuramesh-env, as above. For example, to check the ledger:

Terminal window
docker compose exec api nuramesh-env nuramesh ledger verify --team /data/team
  • Every service is healthy or, for migrate, exited with code 0: docker compose ps.
  • The app opens at https://127.0.0.1:8443.
  • GET /v1/health names the engine that runs your runs.
  • The ledger check above ends without a broken stream.
  • One runner per database: no horizontal scaling and no automatic failover. Nothing runs while the machine is down.
  • The stack sends no email. Operator actions that would need a mailed link have a command instead.
  • The stack never listens on a public address. Reaching it from another machine is your explicit choice: put a TLS proxy of your own in front of web.
  • Stopping the stack keeps the data volumes. Removing the volumes deletes the ledger and the keys.
  • Back up the database and the key volume together: one without the other is not a backup. See Backup and restore.
You see Do this
An operator command exits with code 2 and names NURAMESH_DATABASE_URL The command did not go through nuramesh-env. Add it, as in step 5
The setup token command is refused It needs an interactive terminal. Run it by hand, not from a script or a pipe
The browser warns about the certificate Expected: the certificate is self-signed. Trust it for that address
Many 429 answers at sign-in All local clients share one address, so the sign-in limit counts them together. Wait a minute
Something else See Known issues and Support

Was this page helpful?