Logo
Logo

Orchestrator

Run isolated local GenesisDB instances behind one HTTPS proxy.

Local development with a database usually means juggling Docker commands, remembering port numbers, and clicking through browser certificate warnings. The GenesisDB Orchestrator removes all of that. It is a small cross-platform CLI that runs isolated GenesisDB Docker containers behind one local HTTPS proxy.

Each instance is available at both:

  • https://<name>.genesisdb.local on port 443
  • http://<name>.genesisdb.local on port 80

HTTPS is recommended for browsers and applications that use the operating system trust store. The HTTP endpoint exists for local development tools whose embedded Node.js runtime does not use the operating system trust store.

The GenesisDB container itself listens on its standard port 8080 inside a private Docker network. Instance data is stored in a named Docker volume that survives restarts and shutdowns.

Check it out on GitHub

Requirements

  • Docker Desktop or Docker Engine
  • Administrator access for the hosts file and local certificate trust store
  • On Linux, update-ca-certificates or trust

Installation

Install the latest release on macOS or Linux:

bash
curl -fsSL https://orchestrator.genesisdb.io/install.sh | bash

The installer detects the operating system and architecture, verifies the release checksum, and installs into the first writable directory among /usr/local/bin, ~/.local/bin, and ~/bin. Pass a release tag and destination to override the defaults:

bash
curl -fsSL https://orchestrator.genesisdb.io/install.sh | bash -s -- v0.0.2 ~/bin

Alternatively, download an archive from the latest GitHub release. Release archives are available for macOS, Linux, and Windows on AMD64 and ARM64. Windows archives contain genesisdb.exe.

Getting started

Initialize the proxy, create the wildcard certificate, trust its local CA, add genesisdb.local to the hosts file, and start all existing GenesisDB instances:

bash
# macOS/Linux, sudo is requested when needed
genesisdb init

# Windows: run an Administrator terminal, then:
genesisdb init

Do not run the whole command with sudo on macOS or Linux. The CLI stores state for the current user and invokes sudo only for certificate and hosts-file changes.

Create an instance with the interactive wizard. The auth token remains visible while typing:

bash
genesisdb create

You can also provide values directly, or provide some values and let the wizard prompt for the missing required values:

bash
genesisdb create <name> --auth-token "$(openssl rand -hex 32)"

# Interactive
genesisdb create <name>

Every instance gets:

  • Its own local domain: available via HTTPS on port 443 and HTTP on port 80, no port juggling
  • Full isolation: each database runs in its own container inside a private Docker network
  • Persistent data: events are stored in a named Docker volume that survives restarts and shutdowns

Stop or permanently delete one instance:

bash
genesisdb stop <name>
genesisdb delete <name>

Shut down every managed GenesisDB instance and the proxy, then start all of them again:

bash
genesisdb shutdown
genesisdb init

delete removes the container, its named data volume, proxy route, and hosts-file entry. shutdown preserves containers and data. Creating, stopping, and deleting instances refuse to run while the proxy is not initialized and running.

Dashboard

Run genesisdb without arguments in a terminal to open the interactive dashboard (genesisdb ui still works as an alias):

bash
genesisdb

The dashboard initializes the local proxy and starts existing databases automatically when it opens. Administrator access is requested when certificate or hosts-file setup requires it. It then lists running and stopped databases and refreshes automatically. Select an instance with the arrow keys or j and k. Available actions:

KeyAction
cCreate a database with name and auth token
sStart or stop the selected database
pInitialize everything or shut down all databases and the proxy
eExport a JSON backup through GET /api/v2/admin/backup
iRestore a JSON backup through POST /api/v2/admin/restore
dPermanently delete the database after confirmation
rRefresh containers and GET /api/v2/status data
qClose the dashboard

The details panel displays engine, events, system, storage, memory and CPU information from /api/v2/status. Restore only works into an empty store, as required by GenesisDB.

VS Code extension

For an orchestrated local instance, configure the GenesisDB VS Code extension with:

text
http://<name>.genesisdb.local

The extension host performs its connection test with Node.js fetch. Node.js does not reliably read locally trusted certificate authorities from the macOS Keychain, so the HTTPS URL can fail with UNABLE_TO_VERIFY_LEAF_SIGNATURE even though browsers and the orchestrator can connect. Published GenesisDB HTTPS endpoints continue to work because their certificates use a public certificate authority.

Updates

Check for or install a new CLI release:

bash
genesisdb update --check
genesisdb update

You can also install or update to the latest release by running the stable installer again:

bash
curl -fsSL https://orchestrator.genesisdb.io/install.sh | bash

Published builds automatically check GitHub at most once every 12 hours when running lifecycle commands. If a newer release exists, the CLI prints a short notice. Network failures never prevent normal GenesisDB commands from running. Local development builds report version 0.0.0 and cannot self-update.

The updater verifies the selected release archive against checksums.txt before replacing the current executable. The executable must be writable by the current user.

Docker resources

The CLI creates:

  • Network: genesisdb-local
  • Proxy container: genesisdb-local-proxy using caddy:2-alpine
  • Instance containers: genesisdb-local-<name>
  • Data volumes: genesisdb-local-<name>-data

CLI state and generated certificates are kept in the operating system's user configuration directory under genesisdb.

License

The GenesisDB Orchestrator is open source under the MIT license.