Run Nova with Docker
Run novad from the Nova image, as one standalone container or as a cluster of three or more.
The Nova image runs novad with the same flags as on machines. In production you run one container per machine, beside an S3-compatible bucket. On one machine, three containers on a Docker network make a test cluster. This guide starts one container, grows it into a three-container cluster, and then shows the production command. For a local playground with monitoring, use Try it locally instead.
The image
| Image | ghcr.io/supabase/nova, tagged latest and sha-<commit>, for linux/amd64 and linux/arm64. To build it from a checkout: docker build -f deploy/docker/Dockerfile -t nova . |
| Entrypoint | novad. The container's arguments are its flags. |
| User | nova, uid 10001. It needs no extra capabilities. |
| Data | /data, owned by that user. Mount a volume there and pass --dir /data. |
| Ports | 7780 for clients and 9090 for metrics. In a cluster, also 7790 for the other nodes and the metadata store's five ports, 6660 to 6664. |
| Tools | wget, for a health check against http://localhost:9090/readyz. The nova command line is not in the image. |
Pin a sha- tag in production, so every container runs the same build.
Choose the network
The metadata store inside novad listens on the address the node advertises, so in a cluster the container must own that address.
| Network | The container owns | Use when |
|---|---|---|
--network host | The machine's addresses | Production: one container per machine |
| A user-defined network | Its own address, under its --hostname | A test cluster on one machine |
| The default bridge, with published ports | Only its own internal address | A standalone node, which needs no peer to reach it |
Before you start
Create a network and a bucket. Here RustFS stands in for S3:
docker network create nova
docker run -d --name rustfs --network nova \
-e RUSTFS_ACCESS_KEY=nova -e RUSTFS_SECRET_KEY=novatest rustfs/rustfs:1.0.1
until docker exec rustfs curl -fsS -o /dev/null http://localhost:9000/health/ready; do sleep 1; done
docker exec rustfs curl -fsS -o /dev/null -X PUT --user nova:novatest \
--aws-sigv4 aws:amz:us-east-1:s3 http://localhost:9000/novaInstall the nova command line on the host to check the nodes; Run Nova on machines shows how to build it.
Start one container
Run the node
docker run -d --name novad-1 --hostname novad-1 --network nova --restart unless-stopped --stop-timeout 75 \
-p 7781:7780 -p 9191:9090 -v novad-1-data:/data \
-e AWS_ACCESS_KEY_ID=nova -e AWS_SECRET_ACCESS_KEY=novatest \
ghcr.io/supabase/nova:latest \
--dir /data --listen :7780 --advertise novad-1:7780 --metrics-listen :9090 \
--s3-bucket nova --s3-endpoint http://rustfs:9000 --s3-region us-east-1 --s3-path-styledocker logs novad-1 shows the node starting as a standalone node:
[INFO] embedded: initialising metadata role=standalone metadata=local dir=/data/metadata namespace=nova peers=[] streams_shards=4 queues_shards=4 sessions_shards=8 registry_shards=1 dispatch_shards=4 shard_plan="founding floors; existing shards are preserved"
[INFO] embedded: metadata initialisation complete role=standalone detached=false addr=localhost:33829 dur=1.047942672s
[INFO] wal: ledger minted star=01a2047d-7011-79e4-8233-2ce5214d7029 epoch=1 class=standard layout=hashed priors_fenced=0
[INFO] novad: serving node=01a2047d-7011-79e4-8233-2ce5214d7029 addr=novad-1:7780 listen=[::]:7780 metrics_listen=[::]:9090 zone="" location=local audit=on storage=s3 version=…Check it from the host
export NOVA_ADDR=localhost:7781
nova health
nova bucket create demo
nova stream create --bucket demo --key events
printf 'hello\nworld\n' | nova append nova://demo/events
nova read nova://demo/events --from 0SERVING node=01a2047d-7011-79e4-8233-2ce5214d7029 zone= version=… leading=0
appended 2 entries
0 2026-11-22T19:21:12+01:00 hello
1 2026-11-22T19:21:12+01:00 worldThe volume holds the node's identity and the only copy of its metadata, so keep it across container replacements. docker rm keeps a named volume; docker volume rm deletes it.
Grow it into a cluster
The standalone container becomes the first metadata peer of a three-node cluster, on the same volume. The peer list rules are the ones on machines. Clients wait while the node restarts, about 25 seconds here.
Restart the node with the peer list
docker stop -t 75 novad-1 && docker rm novad-1
docker run -d --name novad-1 --hostname novad-1 --network nova --restart unless-stopped --stop-timeout 75 \
-p 7781:7780 -p 9191:9090 -v novad-1-data:/data \
-e AWS_ACCESS_KEY_ID=nova -e AWS_SECRET_ACCESS_KEY=novatest \
ghcr.io/supabase/nova:latest \
--dir /data --listen :7780 --fleet-listen :7790 --advertise novad-1:7780 --metrics-listen :9090 --zone az-1 \
--oxia-server-peers novad-1:6660,novad-2:6660,novad-3:6660 \
--s3-bucket nova --s3-endpoint http://rustfs:9000 --s3-region us-east-1 --s3-path-styleWait until its log shows novad: serving. Before that, the node founds the cluster's keyspaces over its own shards:
[INFO] embedded: coordinator leading
[INFO] embedded: data server registered node=01a2047d-7011-79e4-8233-2ce5214d7029 via=novad-1:6660
[INFO] embedded: namespace created namespace=nova-streams shards=4 replication_factor=1
[INFO] embedded: metadata initialisation complete role=peer detached=false addr=novad-1:6663 dur=9.863740217s
[INFO] wal: ledger minted star=01a2047d-7011-79e4-8233-2ce5214d7029 epoch=2 class=standard layout=hashed priors_fenced=1
[INFO] novad: serving node=01a2047d-7011-79e4-8233-2ce5214d7029 addr=novad-1:7780 listen=[::]:7780 metrics_listen=[::]:9090 zone=az-1 location=local audit=on storage=s3 version=…Start the other two containers
for n in 2 3; do
docker run -d --name novad-$n --hostname novad-$n --network nova --restart unless-stopped --stop-timeout 75 \
-p 778$n:7780 -p 919$n:9090 -v novad-$n-data:/data \
-e AWS_ACCESS_KEY_ID=nova -e AWS_SECRET_ACCESS_KEY=novatest \
ghcr.io/supabase/nova:latest \
--dir /data --listen :7780 --fleet-listen :7790 --advertise novad-$n:7780 --metrics-listen :9090 --zone az-$n \
--oxia-server-peers novad-1:6660,novad-2:6660,novad-3:6660 \
--s3-bucket nova --s3-endpoint http://rustfs:9000 --s3-region us-east-1 --s3-path-style
doneStart these only after novad-1 is serving
If another node starts while novad-1 is still founding, it can found the keyspaces instead, and the cluster stops using the standalone node's metadata. nova ls then prints No buckets found., and the records written in standalone mode cannot be read.
Check the cluster and the records
nova --addr localhost:7781 oxia peers
nova --addr localhost:7782 fleet
nova --addr localhost:7781 read nova://demo/events --from 0novad-1:6660 leader
novad-2:6660 voter
novad-3:6660 voter
01a2047d-7011-79e4-8233-2ce5214d7029 zone=az-1 addr=novad-1:7780
01a2047e-3833-79ea-8482-16e98b2332d7 zone=az-2 addr=novad-2:7780
01a2047e-39ab-7322-9873-8152fa641c7c zone=az-3 addr=novad-3:7780
0 2026-11-22T19:21:12+01:00 hello
1 2026-11-22T19:21:12+01:00 worldIf the read fails with advertised holder address does not resolve here, the stream's leader is now on novad-2 or novad-3, whose names resolve only on the Docker network. See the note below.
For a new cluster, start all three containers at once with empty volumes. The first in the list founds the cluster; in a test run, all three served within 25 seconds.
Only the client and metrics ports are published. The nodes reach each other on the Docker network, by name. From the host, admin commands work against a published port. A stream command that the node sends on to another leader fails, because the leader's advertised name resolves only on the network. Run such clients on the network, with docker run --network nova.
Run one container per machine
In production, give each container the machine's network, so it owns the address that the other machines dial. Publish nothing; firewall the ports instead, as in Network, ports and TLS.
docker run -d --name novad --network host --restart unless-stopped --stop-timeout 75 \
-v nova-data:/data --env-file /etc/nova/novad.env \
ghcr.io/supabase/nova:sha-<commit> \
--dir /data --listen :7780 --fleet-listen :7790 --metrics-listen :9090 --advertise nova-1:7780 --zone az-1 \
--oxia-server-peers nova-1:6660,nova-2:6660,nova-3:6660 \
--s3-bucket nova --s3-region us-east-1The env file holds the S3 credentials, AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, and any NOVAD_* setting you keep off the command line. Keep --stop-timeout 75: a stopping node hands its streams to the others within 30 seconds and then closes within 25. Docker's default of 10 seconds kills it during that handoff. To update the image, see Upgrade a cluster.
If it goes wrong
| Symptom | Likely cause | What to do |
|---|---|---|
listen tcp …:6664: bind: cannot assign requested address at start | The advertised name resolves to an address the container does not own | Use --network host on a machine, or set --hostname to the advertised name on a Docker network |
cluster: advertised holder address does not resolve here: "novad-3:7780" | A client outside the Docker network followed a redirect to a node's advertised name | Run the client on the network, or advertise names the client resolves |
permission denied on /data | A host directory is mounted there and is not owned by uid 10001 | Use a named volume, or chown -R 10001:10001 the directory |
The log stops at embedded: initialising metadata | The other peers are not up, or their names do not resolve from this container | Put every node of the cluster on one network where each advertised name resolves |
nova ls prints No buckets found. after a standalone node grew | The other nodes started before the first was serving | See the warning in Grow it into a cluster |