Self-hosted trading node: WebSocket hub, durable store, REST API and terminal UI in one container.
179
Paste the two sections below into the repository settings on Docker Hub.
Self-hosted trading node: WebSocket hub, durable store, REST API and terminal UI in one container.
The Quantbook node is a self-hosted trading server. In one container it provides:
/terminal/.The image bundles the paper exchange (a simulated venue) and the Lua logic runtime. Neither needs exchange credentials, so you can place simulated orders and run strategies straight away. Real exchange connectors and other services are installed from a package registry inside the terminal UI.
docker run -d --name quantbook \
-p 8080:8080 \
-e MASTER_PASSWORD='choose-a-strong-password' \
-v quantbook-data:/var/lib/quantbook/database \
quantbook/quantbook-node
Open http://localhost:8080/terminal/ and sign in with the password. Start the paper exchange from the Services panel.
With MASTER_PASSWORD unset, authentication is disabled and anyone who can reach the port has full access. Only do
that on a private machine.
services:
quantbook:
image: quantbook/quantbook-node:latest
ports:
- "8080:8080"
environment:
MASTER_PASSWORD: ${MASTER_PASSWORD}
volumes:
- quantbook-data:/var/lib/quantbook/database
restart: unless-stopped
volumes:
quantbook-data:
| Tag | Contents |
|---|---|
latest, <version> | The standard build. |
oss, oss-<version> | The open build, without Volume Premium billing. |
Images are multi-arch (linux/amd64, linux/arm64). Pin a version tag for anything you rely on.
The standard build asks you to accept the end-user licence agreement in the terminal UI on first use.
| Port | 8080 (HTTP, WebSocket at /ws, UI at /terminal/) |
| Data volume | /var/lib/quantbook/database |
| Config file | /etc/quantbook/config.yml (mount your own over it to replace it) |
| User | Non-root (quantbook, uid 10001) |
| Health check | Polls /terminal/ every 30 seconds |
Secrets come from environment variables, which always override the config file:
| Variable | Purpose |
|---|---|
MASTER_PASSWORD | Protects the UI, REST API, WebSocket and admin endpoints. |
TLS_CERT, TLS_KEY | Paths to PEM files to serve HTTPS directly. Otherwise put the node behind a TLS-terminating proxy. |
QUANTBOOK_MODULE_ORIGIN | Package registry to install and update modules from. |
QUANTBOOK_RELEASE_PUBLIC_KEYS | Extra trusted release-signing keys (comma-separated) for node updates. |
Any string in the config file can also use ${NAME}, ${NAME:-default} or ${file:/path}, which works well with
Docker secrets, for example master_password: ${file:/run/secrets/quantbook_password}.
Only the database is a volume. Installed modules and per-service config live under /app/services. To keep them
across container re-creation, mount a volume there as well:
-v quantbook-services:/app/services
A new named volume is filled from the image on first use, so the bundled paper exchange and Lua runtime are still there. Bind mounts are not filled this way and start empty.
The container runs the Quantbook launcher, which starts the active node version and restarts it after an update. New node releases are installed only when their ed25519 signature verifies against a trusted key, and installing never switches versions on its own: you activate and restart as separate steps. The simplest upgrade path is to pull a newer image tag and recreate the container; the database volume carries over.
MASTER_PASSWORD and use TLS (directly or through a proxy) before exposing the port beyond localhost.quantbook/quantbook-registry: a self-hostable package registry for services, logics and node releases.docker pull quantbook/quantbook-node:latest