Alexandria
Getting Started

Prerequisites

System requirements, runtime dependencies, and local network port allocations for Alexandria.

Prerequisites

Before developing or running Alexandria locally, ensure your workstation meets the runtime and tooling requirements detailed below.


Required Tooling

DependencyMinimum VersionPurpose
Go1.26+Compiles the node binary and executes unit/integration test suites.
Docker & Compose24+ / v2Manages containerized services (PostgreSQL, Zitadel, Caddy proxy, wallets).
Task3+Project task runner coordinating certificate trust, secret loading, and orchestration.
OpenSSL3+Generates the local Certificate Authority (CA) and server certs (preinstalled on macOS/Linux).

task is mandatory: commands in Taskfile.yaml automate certificate trust, load .env secrets, and coordinate multi-container dependencies.


Local Network & DNS (nip.io)

Alexandria terminates TLS even in local development using Caddy (documented in ADR 0005). All services bind locally using subdomains routed through 127.0.0.1.nip.io:

  • Node Portal & API: https://alexandria.127.0.0.1.nip.io:8443
  • Zitadel IAM: https://auth.127.0.0.1.nip.io:8443
  • Wallet Service (Fafnir): Bound to http://127.0.0.1:7003

nip.io automatically maps any wildcard IP prefix directly back to loopback 127.0.0.1 without requiring manual edits to /etc/hosts.


Port Allocation Map

Ensure the following TCP ports are available on your machine:

PortServiceBound ToProtocolNotes
8443Caddy Reverse ProxyHostHTTPSPrimary TLS entrypoint for external callers and browser navigation.
1234Alexandria Node CoreInternalHTTPListens in the clear behind the Caddy TLS reverse proxy.
1500PostgreSQL 17HostTCPRelational persistence for node state and credentials.
1600Zitadel Console & APIHostHTTP/gRPCDirect container access for bootstrap automation and admin console.
7003Fafnir WalletHostHTTPDefault wallet backend providing key custody and DID signing.
8181 / 8182Eclipse EDC IdentityHubHostHTTPAlternative enterprise wallet backend (task identityhub:up).
8200HashiCorp VaultHostHTTPOptional backend for Fafnir key storage (task vault:up).
2112Prometheus Metrics / pprofInternalHTTPObservability endpoints (/metrics, /debug/pprof).
3000Documentation ServerHostHTTPLocal Fumadocs preview server (task docs:dev).
EOF

On this page