Deploying with Docker and Docker Compose

DBO Studio ships as one container image that serves the web app and its API together. This page covers running it, keeping data safe, putting TLS in front, and upgrading.

Quick start

bash
docker run -d \
  -p 9000:9000 \
  -v "$(pwd)/data:/backend/data" \
  ghcr.io/dbo-studio/dbo/dbo:latest

Open http://localhost:9000.

The image defaults to APP_PORT=9000 and APP_ENV=docker. App data and the encryption key live in /backend/data inside the container. Always mount a volume there.

Warning: This starts DBO Studio without login. Before other people can reach the port, set APP_AUTH_MODE=local. See Authentication and users.

Docker Compose

From a directory that contains the production Compose file:

bash
mkdir -p docker/dbo
docker compose up -d
SettingValue
Imageghcr.io/dbo-studio/dbo/dbo:latest
Port9000:9000
Volume./docker/dbo:/backend/data
EnvironmentAPP_PORT=9000, APP_ENV=docker

For a host other people can reach, also set APP_PUBLIC_URL, APP_AUTH_MODE=local, and APP_ALLOWED_ORIGINS. See Configuration and Authentication and users.

Build the image yourself

bash
docker build -t dbo-local .
docker run -p 9000:9000 -v dbo-data:/backend/data dbo-local

The official tags are:

text
ghcr.io/dbo-studio/dbo/dbo:<VERSION>
ghcr.io/dbo-studio/dbo/dbo:latest

Reverse proxy and TLS

Terminate TLS at nginx, Caddy, or a load balancer. Then set:

bash
APP_PUBLIC_URL=https://dbo.example.com
APP_AUTH_MODE=local
APP_ALLOWED_ORIGINS=https://dbo.example.com

Proxy everything to the container port. AI replies stream over long-lived responses, so give the proxy a read timeout of a few minutes.

A minimal Caddy setup:

text
dbo.example.com {
    reverse_proxy 127.0.0.1:9000
}

Then open the site and create the admin account on the first screen.

MCP

MCP clients need a public MCP URL. Either:

  • APP_PUBLIC_URL=https://dbo.example.com (MCP defaults to <url>/api/mcp), or
  • APP_MCP_PUBLIC_URL=https://dbo.example.com/api/mcp

Enable MCP in Settings → AI after the app is reachable at that URL.

Upgrades

  1. Back up the mounted volume (dbo.db, logs, app_secret.key).
  2. Pull the new tag: docker pull ghcr.io/dbo-studio/dbo/dbo:latest
  3. Recreate the container with the same volume.
  4. Schema migrations run on startup.

Data directory

text
/backend/data/
├── dbo.db              # connections, jobs, AI config, users
├── app_secret.key      # encrypts stored credentials
├── exports/            # web export output
└── logs/

Warning: If you skip the volume, the next container start is a new empty instance. Connection secrets encrypted with the old key cannot be read without app_secret.key.

Previous

Keyboard Shortcuts

Next

Authentication and Users