Quick Start Guide

Zero to a running instance with an activated license and a live connection. Two paths, Compose for single-host and evaluation, Helm for clusters. The delivery bundle ships docker-compose.yml, .env.example, and helm/; your license key arrives separately by email.

Running the image constitutes acceptance of the EULA (LICENSE.txt in the bundle): no reverse engineering of the image or its contents, no redistribution beyond licensed seat count, no use outside your own infrastructure. Commercial terms: contactus@simchasolutions.com.

Secrets (both paths)

Three secrets are mandatory, along with the other required settings in .env.example; the app fails closed at startup and lists every variable that is missing.

Path A: Docker Compose

cp .env.example .env
echo "JWT_SECRET=$(openssl rand -hex 32)" >> .env
echo "ENCRYPTION_KEY=$(openssl rand -hex 32)" >> .env
echo "DB_DEVOPS_DB_PASSWORD=$(openssl rand -hex 16)" >> .env
# strip the placeholder lines from .env, keep only the appended values,
# then set CLIENT_URL and APP_PUBLIC_URL to the address you will browse to

docker compose up -d

Compose pulls the image, starts Postgres, applies pending migrations idempotently, and launches the app. First boot is 30-60s; health returns STARTING (HTTP 503) until the metadata DB is reachable; the server checks again every 3 seconds and then reports OK.

curl http://localhost:5002/api/health
# {"status":"OK","timestamp":"...","uptime":...,"database":"connected"}
docker compose logs -f app

Open the UI, create the administrator on the setup page, then activate the license (paste the SDB-... key; its signature is checked against the bundled RSA public key, and a key not issued for this installation ID is registered with the Simcha license service at LICENSE_SERVICE_URL), then open the IDE and add a connection, test, save, and query it. Pin an image tag for anything beyond evaluation:

echo "SIMCHA_IMAGE=simchasolutions/db-studio:1.0.2" >> .env
docker compose pull app && docker compose up -d app

Path B: Kubernetes (Helm)

helm install dbstudio ./helm \\
  --namespace dbstudio --create-namespace \\
  --set secrets.jwtSecret=$(openssl rand -hex 32) \\
  --set secrets.encryptionKey=$(openssl rand -hex 32) \\
  --set secrets.dbPassword=$(openssl rand -hex 16) \\
  --set ingress.enabled=true \\
  --set ingress.hosts[0].host=dbstudio.example.com \\
  --set config.env.CLIENT_URL=https://dbstudio.example.com \\
  --set config.env.APP_PUBLIC_URL=https://dbstudio.example.com

The chart renders the app Deployment, a single-node Postgres StatefulSet, a Service, an optional Ingress, and a pre-install/pre-upgrade migration Job that gates the rollout, migrations complete before any new pod serves traffic.

kubectl -n dbstudio get pods
kubectl -n dbstudio port-forward svc/dbstudio-simcha-db-studio 3000:3000 5002:5002

The chart defaults (in-namespace Postgres, chart-generated Secret) are evaluation-grade. For production, override:

Full overrides template: Kubernetes Deployment.

First-run setup

On first start the browser shows the setup page until an administrator exists. It shows the database this installation is configured to use (the DB_DEVOPS_DB_* settings) and whether its server is reachable; setup creates that database if it does not exist yet (the configured user needs permission to create databases for that), applies the migrations, and creates the administrator account you enter (password of at least 12 characters, with an uppercase and a lowercase letter, a digit and a symbol). Setup never connects to any other database, and it is refused once an administrator exists. If the database server cannot be reached, the page says so and checks again every few seconds; fix the settings or start the server, and setup continues.

Bringing up DB DevOps

Sign in as the administrator created during setup. From there the standing order is: register repository/storage sources (branch, path, *.sql pattern) under Repo Sources; register the target database connections executions will run against under Connections and put them in groupings assigned to your environments under Groupings; then populate Migration Scripts by upload or repo sync. Scripts carry engine, environment, version, content hash, and dependencies from creation, which is what makes downstream dependency ordering and tamper detection work.

Startup troubleshooting

SymptomCauseFix
Container exits, "Invalid configuration" listing variables such as JWT_SECRET or DB_DEVOPS_DB_PASSWORDMissing or invalid required setting, fail-closed startupSet the var (≥32 chars where required), restart
Bind failure on the UI/API portHost port already boundFree the port or remap host ports in .env
Target connection failsCredentials/host/network path to the targetConfirm reachability from inside the container's network before blaming the app
License activation rejectedMalformed or expired keyRe-copy the full key; confirm it is within its validity window
Migrations fail on bootMetadata Postgres role lacks DDL rightsGrant the role ownership/DDL on the metadata database and restart

Next steps