Prerequisites

You need a running relay with the instance directory module enabled (it is enabled by default).

Configure Peers

Start your relay with the --peers flag:

docker run -d \
  -p 3000:3000 \
  -e RELAY_PEERS=https://relay.btoven.net \
  registry.europe.network.btoven.net/relay-btoven:latest

Or with environment variables:

RELAY_PEERS=https://relay-a.example.com,https://relay-b.example.com

Or with multiple peers:

--peers https://relay-a.example.com,https://relay-b.example.com

What Happens Next

  1. Your relay fetches the instance directory from each peer
  2. New instances are merged into your local store
  3. Your relay shares its own instances back (when peers fetch from you)
  4. The mesh stays synchronized within the sync interval

Verify

curl http://localhost:3000/api/v1/federation/status

You should see your peers listed with recent sync timestamps.