NATS
JetStream durable messaging, ready to run as a private service.
| Setting | Value |
|---|---|
| Image | library/nats:2-alpine |
| Port | 4222 (TCP, private) |
| Storage | Volume at /data |
| Minimum size | 0.5 vCPU · 512 MiB |
Create it
In your project, choose Create, then NATS from the templates. Raseef creates the service with the settings below, generates its secrets and deploys it. Its data lives on its own volume.
Connect from your app
NATS is a private service: it has no public address. Other services in the same environment reach it on its private address and port, which Raseef offers as variables you can reference.
Add a variable to your app that references the NATS_URL of this service. If you named the service
nats:
NATS_URL=${{ nats.NATS_URL }}At deploy time the reference becomes a full connection string:
nats://<NATS_AUTH_TOKEN>@<private address>:4222See Variables for how references work.
Variables
Generated once, when the service is created, and stored encrypted:
| Variable | Value |
|---|---|
NATS_AUTH_TOKEN | A random token, 96 hex characters |
Every variable of a template service is managed by Raseef and cannot be edited. The workspace owner can reveal the secrets from the service panel; each reveal is recorded in the audit log.
Data and backups
The data directory /data is a persistent volume: it survives restarts and deploys. A service with a
volume runs a single replica, and a deploy stops the old replica before starting the new one, so expect a short
interruption. See Volumes for sizes and backups.
Version
The service runs library/nats:2-alpine, pinned by digest when the service is created and kept on that
exact image afterwards. Template catalog version 2026-10-19.1.
Upstream documentation: library/nats.