Docker all-in-one
The single ghcr.io/brume-ai/brume image: launch, embedded or external database, s6 service checks, backups, and incidents.
In brief
The all-in-one image embeds PostgreSQL, backend, worker, frontend, and documentation in a single container. This page covers the launch, the external database, the container runbook, and backups.
One command, and Brume is running, including document ingestion. In the commands, replace <container>, <volume>, and <date>; 8000 is the default published backend port.
Launch with the embedded database
docker run -p 3000:3000 -p 3001:3001 -p 8000:8000 ghcr.io/brume-ai/brume:ceOpen http://localhost:3000. Documentation matching this exact version is served at http://localhost:3001/en/docs, and PostgreSQL runs inside the container.
Frontend built for localhost
This image targets a local evaluation or access from the host. To serve Brume on a public domain with TLS, take Docker Compose.
To keep your data across restarts, mount the database volume:
docker run -p 3000:3000 -p 3001:3001 -p 8000:8000 \
-v brume-data:/var/lib/postgresql/data \
ghcr.io/brume-ai/brume:ceConnect an external database
Pass a runtime DATABASE_URL using brume_app, plus an administration DATABASE_ADMIN_URL targeting the same database: the image skips the embedded database, creates or reconciles the runtime role, then runs migrations through the administration URL. Also provide JWT_SECRET and APP_ENCRYPTION_KEY so sessions and encrypted data survive restarts.
docker run -p 3000:3000 -p 3001:3001 -p 8000:8000 \
-e DATABASE_URL="postgresql://brume_app:[email protected]:5432/brume" \
-e DATABASE_ADMIN_URL="postgresql://postgres:[email protected]:5432/brume" \
-e JWT_SECRET="$(openssl rand -hex 32)" \
-e APP_ENCRYPTION_KEY="$(python3 -c 'from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())')" \
ghcr.io/brume-ai/brume:ceOne trust boundary
The initializer does not persist DATABASE_ADMIN_URL or pass it to the backend and worker processes. Docker still retains the variable in the container metadata. To isolate administration credentials strictly from the long-lived application container, take Docker Compose or the Helm chart.
Ephemeral secrets
Without JWT_SECRET/APP_ENCRYPTION_KEY, the image generates them on startup and reports them in the logs, but they change on every restart (sessions invalidated, encrypted data unreadable). Provide them for durable use.
Check the container
docker ps --filter name=<container>
docker logs --tail 100 <container>
curl -fsS http://localhost:8000/health
docker exec <container> s6-rc -a list
for s in postgres backend worker frontend docs; do
docker exec <container> s6-svstat "/run/service/$s"
done
docker logs -f <container>A {"status":"ok"} response confirms that the public backend is responding.
Back up
These commands cover the embedded database. With DATABASE_URL, back up the external database. The volume mounted at /var/lib/postgresql/data retains the embedded database and generated secrets.
Create a logical dump
umask 077
docker exec <container> pg_dump -U postgres -d brume > brume-<date>.sql
test -s brume-<date>.sqlIdentify the volume
docker inspect <container> \
--format '{{range .Mounts}}{{if eq .Destination "/var/lib/postgresql/data"}}{{.Name}}{{end}}{{end}}'Create a cold volume copy
docker stop <container>
docker run --rm \
-v <volume>:/source:ro \
-v "$PWD":/backup \
alpine sh -c \
'umask 077; tar -C /source -czf /backup/brume-pgdata-<date>.tgz .'
docker start <container>
test -s brume-pgdata-<date>.tgzResolve a stopped service
Symptom → the UI, API, jobs, or docs stop responding.
Diagnosis →
for s in postgres backend worker frontend docs; do
docker exec <container> s6-svstat "/run/service/$s"
done
docker logs --tail 200 <container>Resolution →
docker restart <container>
until curl -fsS http://localhost:8000/health; do sleep 2; done
docker logs --tail 200 <container>Image upgrades are covered in Upgrade. For separate services, a reverse proxy, and a domain, take Docker Compose.