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
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:
mkdir -p docker/dbo
docker compose up -d
| Setting | Value |
|---|---|
| Image | ghcr.io/dbo-studio/dbo/dbo:latest |
| Port | 9000:9000 |
| Volume | ./docker/dbo:/backend/data |
| Environment | APP_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
docker build -t dbo-local .
docker run -p 9000:9000 -v dbo-data:/backend/data dbo-local
The official tags are:
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:
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:
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), orAPP_MCP_PUBLIC_URL=https://dbo.example.com/api/mcp
Enable MCP in Settings → AI after the app is reachable at that URL.
Upgrades
- Back up the mounted volume (
dbo.db, logs,app_secret.key). - Pull the new tag:
docker pull ghcr.io/dbo-studio/dbo/dbo:latest - Recreate the container with the same volume.
- Schema migrations run on startup.
Data directory
/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.
Related
- Configuration — every environment variable
- Security — login and hardening
- Authentication and users — turn login on, create the admin
- Development setup — run from source with sample databases