Run the project (Ubuntu)
Ubuntu 22.04 LTS or newer is the supported and tested target. Track 1 (Docker Compose) is the recommended path; Track 2 (bare metal) is at the bottom for advanced setups.Track 1: Docker Compose (recommended)
Prerequisites
- Docker Engine 20.10+ and the
docker composev2 plugin git
INSTALL.md:
Use
docker compose (with a space). The legacy hyphenated docker-compose is the deprecated Python script — install the v2 plugin (docker-compose-plugin package) instead.Three-step quickstart
- Node RPC:
http://localhost:53550— trycurl http://localhost:53550/info - Grafana:
http://localhost:3000(defaultadmin/demos) - Prometheus:
http://localhost:9091
Tour of .env
.env.example is the canonical template. The defaults work for local development. The variables you are most likely to touch:
Leave
PG_HOST=postgres and TLSNOTARY_HOST=tlsnotary exactly as shipped — those are the in-network service names used by docker compose.
Compose profiles
COMPOSE_PROFILES in .env controls the optional services:
Common operations
demos_ (e.g. demos_node_state holds .demos_identity, demos_pgdata holds chain data). They survive docker compose down but not docker compose down -v.
Going public (VPS / public Ubuntu host)
Before joining a real Demos network:-
Set
EXPOSED_URLin.envto your reachable address — public IP or DNS — notlocalhost. -
Open the firewall before advertising the public URL:
-
Do not expose
5432(Postgres),9090(node metrics),9091(Prometheus), or3000(Grafana) to the public internet. -
Seed
demos_peerlist.jsonwith bootstrap peers from the team. Do not invent hostnames; use the values the team publishes.
Troubleshooting
Track 2: Bare metal with ./run (advanced)
Track 2 runs the node binary natively via Bun and uses Docker only for a Postgres sidecar managed by the ./run script. Pick this path for core development, kernel-level debugging, or TUI-driven operation.
The full walkthrough — prerequisites (build-essential, Bun via Mise or the direct installer, Rust for wstcp), ./scripts/install-deps.sh, identity generation, ./run flags — lives in the source of truth:
For the bare-metal path, override these in your .env:
PG_HOST=localhostPG_PORT=5332TLSNOTARY_HOST=localhost