Skip to Content
DBVision

Install with Docker

Verify the signed container image with Cosign, run DBVision with Docker or Docker Compose, and configure environment variables.

DBVision is distributed as a signed container image on GitHub Container Registry (ghcr.io/nathandelenclos/dbvision).

Verify the image with Cosign

Pick a version from GitHub Releases. The example below uses 0.1.0. Verify the signature with Cosign v3 and extract the manifest digest with jq:

image=ghcr.io/nathandelenclos/dbvision:0.1.0
digest=
verification=$(cosign verify "$image" \
  --certificate-identity https://github.com/Nathandelenclos/dbvision/.github/workflows/release.yml@refs/heads/main \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com) &&
digest=$(printf '%s\n' "$verification" | jq -er '.[0].critical.image["docker-manifest-digest"]')

Run with Docker

Run the container at the verified digest with a named volume at /data:

docker run -d --name dbvision -p 127.0.0.1:3000:3000 -v dbvision-data:/data \
  --read-only --tmpfs /tmp:rw,noexec,nosuid,nodev,size=64m \
  --cap-drop ALL --security-opt no-new-privileges --env DBVISION_MASTER_KEY \
  "$image@${digest:?Verify the image first}"

Open http://localhost:3000. Export DBVISION_MASTER_KEY before starting the container to supply your own encryption key, or let DBVision generate one under /data on first start.

Docker Compose

Download compose.yaml from the same GitHub Release. It pins the image by version and digest. Set image in the Cosign verification commands above to the full image: value in that file before starting Compose:

docker compose up -d

Configuration

VariableDefaultPurpose
DBVISION_DATA_DIR./dataDirectory holding the SQLite metadata database, generated auth secret, and generated master key. Mount on a local volume (/data in Docker).
DBVISION_SQLITE_DIRunsetAbsolute path to an existing directory for SQLite target databases. SQLite targets are disabled when unset. Relative connection paths resolve against this directory.
BETTER_AUTH_SECRETgeneratedSecret that signs sessions, at least 32 characters. When unset, DBVision generates one on first start in <DBVISION_DATA_DIR>/auth-secret (mode 0600).
BETTER_AUTH_URLunsetPublic origin of the instance, such as https://dbvision.example.com (scheme and host only, no path). Required for MCP OAuth. HTTPS is required except on localhost and loopback addresses.
DBVISION_MASTER_KEYgeneratedBase64-encoded 32-byte key (openssl rand -base64 32) encrypting stored secrets. When unset, DBVision generates one in <DBVISION_DATA_DIR>/master-key (mode 0600).
DBVISION_PREVIOUS_MASTER_KEYunsetPrevious master key, for reading during key rotation only. Remove after a successful rotation.
DBVISION_ALLOW_SIGNUPfalseSign-up is open until the first account exists. Set true to allow additional registrations.
DBVISION_LLM_ALLOW_PRIVATE_URLSfalseAllow OpenAI-compatible endpoints on private networks or loopback (such as a local Ollama server). Enable only when users are trusted to reach those endpoints.
DBVISION_EXECUTION_LOG_DAYS30Days to keep SQL execution records. Accepts an integer from 1 to 3650.
PORT3000HTTP port the server listens on.

See Upgrades, Backups & Key Rotation for backing up /data separately from DBVISION_MASTER_KEY.

On this page