Deployment¶
Run the scripts from src/dns.
| Script | Purpose |
|---|---|
deploy/scripts/build.sh |
Build all images |
deploy/scripts/up.sh |
Build, create identities, start, enroll and fund |
deploy/scripts/smoke.sh |
Checks |
deploy/scripts/compose.sh ... |
Docker Compose with the right environment |
deploy/scripts/logs.sh |
Follow logs |
deploy/scripts/down.sh |
Stop. Keeps data |
deploy/scripts/purge.sh --yes |
Delete keys and data |
Services¶
| Service | Role |
|---|---|
transport, witness-0 to witness-3, watcher-0, watcher-1 |
Identity network |
relay |
Nostr relay for advertisements |
dht |
DHT bootstrap nodes |
iroh-relay |
Relay for QUIC connections |
authority, ledger, nip05, aggregator |
Supporting services |
swarmd-*, irohd-*, agent-* |
One set for each agent |
Agent c connects through the Iroh relay only, to demonstrate relaying.
| Variable | Default |
|---|---|
AGENT_A_PORT, AGENT_B_PORT, AGENT_C_PORT |
7500, 7501, 7502 |
SUBNET, IP_RANGE, DHT_IP |
172.31.92.0/24, 172.31.92.128/25, 172.31.92.10 |
DHT_BOOTSTRAP |
172.31.92.10:49737 |
If Docker reports overlapping networks, set SUBNET, IP_RANGE, DHT_IP and DHT_BOOTSTRAP to another range before starting.
Production notes¶
- Serve names over HTTPS and leave
NIP05_SCHEMEandALLOW_PRIVATEat their defaults. - Use several relays and an Iroh relay with TLS.
- Open the UDP port of
irohdif possible. Otherwise traffic uses hole punching or the relay. - Back up the data directory of each agent with its passphrase.