Skip to main content

Run the project (macOS)

This guide gets you to a running node on macOS. Track 1 (Docker Compose) is the recommended path; Track 2 (bare metal) is documented at the bottom for advanced setups.

Prerequisites

Verify both are present:
Use the docker compose form (with a space). The legacy hyphenated docker-compose is the deprecated Python script and is not supported.

Three-step quickstart

The first run pulls images and builds the node container, which can take a few minutes. Subsequent starts are near-instant. When the stack is healthy:
  • Node RPC: http://localhost:53550 — try curl http://localhost:53550/info
  • Grafana: http://localhost:3000 (default admin / 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.
Old docs referenced RPC_FEE=5 and SERVER_PORT. Both are wrong. The current names are RPC_FEE (default 1, plus NETWORK_FEE=1 and BURN_FEE=1) and RPC_PORT.

Compose profiles

COMPOSE_PROFILES in .env controls the optional services:

Common operations

State persists in named Docker volumes prefixed demos_ (e.g. demos_node_state holds .demos_identity, demos_pgdata holds chain data, demos_grafana_data holds dashboards). They survive docker compose down but not docker compose down -v.

Going public

Before joining a real Demos network from a Mac that other peers should reach:
  1. Set EXPOSED_URL in .env to your reachable address — public IP or DNS — not localhost.
  2. Open inbound TCP for 53550 (RPC), 53551 (OmniProtocol), and 7047 (TLSNotary, if enabled) on your router/firewall before advertising the public URL.
  3. Seed demos_peerlist.json with bootstrap peers from the team. Do not invent hostnames; use the values the team publishes.
See INSTALL.md for the full peerlist seeding procedure.

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 macOS-specific quirks (source $HOME/.zshrc instead of .bashrc, Docker Desktop instead of apt-installed Docker) are handled by the upstream install scripts. The full walkthrough — prerequisites, ./scripts/install-deps.sh, identity generation, peerlist setup, and ./run flags — lives in the source of truth: For the bare-metal path, override these in your .env:
  • PG_HOST=localhost
  • PG_PORT=5332
  • TLSNOTARY_HOST=localhost