Repository navigation
Installation
Java 17
Databucket server runs on Java 17 or newer.
PostgreSQL database
Databucket works only with a PostgreSQL server; it relies on PostgreSQL features (jsonb, triggers). The current version is developed and tested on PostgreSQL 18. Before configuration, create an empty database dedicated only to Databucket, and a user that owns it.
Databucket server JAR file
Download the latest Databucket server release from the Releases page, use the Docker image, or build it yourself as described in the README.md. The JAR contains both the server and the web application.
Before you run Databucket server using the databucket-server-3.x.x.jar file, prepare a configuration file and save it as application-profile_name.yaml in the directory you run Databucket from, where profile_name is the name used in the run command. You can keep several such files with different profile names, e.g. application-test.yaml and application-prd.yaml, and use one or the other depending on your needs.
Here you can see an example base configuration:
jwt:
secret: change-me-to-a-random-text-of-at-least-32-characters # signs the users' sign-in tokens
expire.hours: 24 # how long a sign-in is valid
server:
port: 8080 # Databucket server port
servlet.context-path: / # Databucket url suffix. If your base Databucket url is localhost:8080/test, then this path should be set as /test
spring:
datasource:
url: jdbc:postgresql://localhost:5432/databucket # PostgreSQL connection string
username: username # database user name
password: userpassword # database user passwordjwt.secret is required and must be your own, at least 32 characters long: since 3.20.2 Databucket doesn't start without it, with a shorter one, or with a published one (the old built-in value, the example above). Whoever knows it can sign in as any user. Generate a random one, e.g. with openssl rand -base64 48. Changing it later signs out all users. When you run several Databucket instances, all of them must use the same secret.
Optional settings
-
Emails (registration confirmation, account activation, forgot password links, temporary passwords and requests for access to buckets from Overview) are sent through the SMTP server configured in
spring.mail:
spring:
mail:
host: smtp.example.com
port: 587
username: username
password: password
from: databucket@example.com
properties.mail.smtp.auth: true
properties.mail.smtp.starttls.enable: true- Single sign-on with Microsoft Entra ID, Google, Okta, Keycloak or another OpenID Connect provider — see Single sign-on.
-
Datasets of the server — a folder of dataset files (
*.json, e.g. projects exported for trainings) that are offered in Management → Projects → Import dataset next to the built-in ones (see Project management). New files are listed without a restart.
databucket:
datasets-dir: /opt/databucket/datasets-
MCP server for AI agents (since 3.15.0) at
<databucket url>/mcp, off by default - see AI agents (MCP):
databucket:
mcp:
enabled: true- Jobs (since 3.21.0, on by default) - how often the server looks for jobs to run by cron and the limits of a run, see Jobs:
databucket:
task-schedules:
enabled: true
poll-interval: 60s
max-rows: 10000
max-failures: 5-
Activity and audit log (since 3.22.0, on by default) - the changes of the settings, the sign-ins and the bulk operations, kept in the database for
retention-days(0 = for ever) and removed every night, see Activity:
databucket:
audit:
enabled: true
retention-days: 365
cleanup-cron: "0 45 2 * * *"Every property can also be set as an environment variable instead of in the file, e.g. SPRING_DATASOURCE_PASSWORD or JWT_SECRET. This is handy for passwords and secrets.
Every release is also a Docker image on Docker Hub: databucket/databucket-server, for linux/amd64 and linux/arm64. Tags: latest (the latest release), 3.22.0 (a release), 3.22 (the latest patch of a minor version). The image holds the jar of the release, run with Java 17 as user 1000, on port 8080.
The configuration is given as environment variables - every property of the configuration file has one (spring.datasource.url → SPRING_DATASOURCE_URL, jwt.secret → JWT_SECRET...). A minimal docker-compose.yaml with PostgreSQL:
services:
postgres:
image: postgres:18-alpine
environment:
POSTGRES_DB: databucket
POSTGRES_USER: databucket
POSTGRES_PASSWORD: change-me
volumes:
- pgdata:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U databucket -d databucket"]
interval: 5s
retries: 10
databucket:
image: databucket/databucket-server:latest
depends_on:
postgres:
condition: service_healthy
ports:
- "8080:8080"
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/databucket
SPRING_DATASOURCE_USERNAME: databucket
SPRING_DATASOURCE_PASSWORD: change-me
JWT_SECRET: <your own random text of at least 32 characters, e.g. from: openssl rand -base64 48 - required>
volumes:
pgdata:docker compose up, open http://localhost:8080 and sign in as super / super - change this password right away. To upgrade, pull the new tag and start it on the same database (see Upgrading).
The docker compose of the repository is a complete setup for trying Databucket on your machine - with single sign-on (Keycloak), a mail catcher and the MCP server - built from the sources; its JWT_SECRET is public, so don't use it for a real installation.
Suppose you have the following files in your directory:
- application-prd.yaml
- databucket-server-3.7.3.jar
Then, from the command line, run:
java -Dspring.profiles.active=prd -jar databucket-server-3.7.3.jar
Open http://localhost:8080 (with your port and context path) in the browser.
Run Databucket in UTC: java -Duser.timezone=UTC -Dspring.profiles.active=prd -jar databucket-server-<version>.jar. The dates of the data rows (Created at, Modified at) are stored without a time zone, in the time zone of the server, and dates in rules (e.g. 2026-11-20T10:00:00.000Z from the rich filter or a client) are read in it too. With a server outside UTC such a rule is shifted by the server's offset (an hour or two in Central Europe); relative dates (@now-2h) are not affected.
The Docker image runs in UTC unless the container sets another time zone (e.g. the TZ environment variable). Choose the time zone before the first start: changing it later shifts the dates already stored.
The database is initialized during the first Databucket startup. In this process, the application creates the required tables and a default user account with the SUPER role. Use this account to create your personal account. After that, disable the default user. Don't delete it: Databucket would create it again with the default password on the next startup.
Default user credentials:
- User name: super
- User password: super
- Back up the database.
- Stop Databucket and replace the JAR file with the new one.
- Run the upgrade scripts of the versions you are skipping, in order, as listed below.
- Start Databucket. New tables and columns are added automatically during startup.
The scripts are in the upgrade directory of the repository. Run them with psql:
psql -h <host> -U <user> -d <database> -f 3.7.0.sql
Each script runs in one transaction and can be run more than once.
| Version | Script | What it does |
|---|---|---|
| 3.7.0 | 3.7.0.sql | User emails must be unique (single sign-on matches users by email). The script stores the emails trimmed and lower-cased and adds the unique constraint. When several users share an email, it lists them and changes nothing. Give each of them a unique email (or clear it) and run the script again. |
| 3.7.1 | — | No database changes. Replace the JAR file. |
| 3.7.2 | — | No database changes. Replace the JAR file. |
| 3.7.3 | 3.7.3.sql | Indexes on the tables of the existing buckets (data by tag and reservation, history by data row) and the tag of history entries stored as bigint. Changing the type rewrites the history tables, so run it while Databucket is stopped. Buckets created by 3.7.3 get the indexes themselves. |
| 3.7.4 | — | No database changes. Replace the JAR file. |
| 3.7.5 | — | No database changes. Replace the JAR file. Icons are now checked when saved: saving a bucket or an enum whose icon contains unsafe SVG or is larger than 32 KB is refused until another icon is chosen. |
| 3.8.0 | — | No upgrade script. Replace the JAR file; the new column for the default sort of views is added during startup. |
| 3.8.1 | — | No database changes. Replace the JAR file. |
| 3.8.2 | — | No database changes. Replace the JAR file. |
| 3.9.0 | — | No upgrade script. Replace the JAR file; the new bucket settings (Visible in Overview, on for existing buckets, and Limit data history) and the table of access requests are added during startup. |
| 3.9.1 | — | No database changes. Replace the JAR file. |
| 3.9.2 | — | No database changes. Replace the JAR file. |
| 3.9.3 | — | No upgrade script. Replace the JAR file; the table of used SSO sign-in codes is added during startup. |
| 3.10.0 | — | No upgrade script. Replace the JAR file; the user name columns are widened to 50 characters during startup. |
| 3.11.0 | — | No database changes. Replace the JAR file. |
| 3.12.0 | — | No upgrade script. Replace the JAR file. One role per user now: users with several roles work with their highest one. Roles of buckets, views and groups now mean that role or higher; check them after upgrading. |
| 3.13.0 | — | No database changes. Replace the JAR file. API version 2 (header Databucket-Api-Version: 2); move automated tests to it, version 1 will be removed. |
| 3.13.1 | — | No database changes. Replace the JAR file. The checkboxes of the data table are a view feature now (Selection), off in existing views: enable it in Settings → Views where they are wanted. |
| 3.13.2 | — | No database changes. Replace the JAR file. |
| 3.13.3 | — | No database changes. Replace the JAR file. |
| 3.13.4 | — | No database changes. Replace the JAR file. |
| 3.13.5 | — | No database changes. Replace the JAR file. |
| 3.14.0 | — | No database changes. Replace the JAR file. ROBOT accounts can read and clear the data history; new endpoint to search the history. |
| 3.15.0 | — | No database changes. Replace the JAR file; the AGENT role is added during startup. MCP server for AI agents, off by default (see AI agents). |
| 3.15.1 | — | No database changes. Replace the JAR file. |
| 3.16.0 | — | No database changes. Replace the JAR file. From this version Databucket is licensed under the Apache License 2.0 (up to 3.15.1: MIT). |
| 3.16.1 | — | No database changes. Replace the JAR file. |
| 3.16.2 | — | No database changes. Replace the JAR file. |
| 3.16.3 | — | No database changes. Replace the JAR file. |
| 3.17.0 | — | No database changes. Replace the JAR file. API version 1 removed: rules given as SQL text and the #func: prefix are refused with 400 (write them as [left, operator, right] rules); conditions still work, translated like the rules. The header Databucket-Api-Version is ignored. |
| 3.18.0 | — | No manual database changes (the new column of the buckets is added at startup). Replace the JAR file. New: indexed properties of a bucket. |
| 3.18.1 | — | No database changes. Replace the JAR file. New: count=false for /get (a page without counting the matching rows). |
| 3.19.0 | — | No database changes. Replace the JAR file. New for AI agents: generate_data and create_bucket. A token stops working at once when its user is disabled or expires, is taken out of the project, or the project is disabled or expires; a role taken away applies at once. Dates in the API: any ISO 8601 accepted. |
| 3.20.0 | — | No database changes. Replace the JAR file. New: data generation in the web application (view feature Generate, off in existing views - enable it in Settings → Views) and in the API (POST /api/bucket/{bucketName}/generate). |
| 3.20.1 | — | No database changes. Replace the JAR file. The DEMO dataset has the view feature Generate in the views of users; projects with DEMO imported earlier keep their views. |
| 3.20.2 | — |
Set your own jwt.secret (JWT_SECRET) before upgrading, at least 32 characters: without it, or with the old built-in value, Databucket doesn't start. The jar no longer has default database (localhost:5432/databucket, databucket_user) and mail settings: set them if you relied on them. Changing the secret signs out all users. No database changes. |
| 3.21.0 | — | No manual database changes: the tables of the jobs (task_schedules, task_schedule_runs) are created at startup. Replace the JAR file. Jobs run by cron by default (databucket.task-schedules.enabled); none runs until an admin adds one. |
| 3.22.0 | — | No manual database changes: the table of the activity (audit_events) is created at startup. Replace the JAR file. The changes are recorded from now on (on by default, databucket.audit.enabled) and kept for 365 days (databucket.audit.retention-days). |
| 3.23.0 | upgrade/3.23.0.sql | Only for databases used by 3.21.0 or later: drops the NOT NULL constraint of task_schedules.cron, so a job can have no cron (the new column keyword is added at startup). Replace the JAR file. New: a job (Settings → Jobs) can also run by its keyword (POST /api/task-schedules/run, MCP run_jobs), and Run runs the task as the user who clicks, not as the one who saved the job. |
| 3.23.1 | — | No database changes. Replace the JAR file. Management → Users loads much faster with many users. |
| 3.24.0 | — | No database changes. Replace the JAR file. New: relative dates (@now-2h) in the rich filter. |
| 3.24.1 | — | No database changes. Replace the JAR file. New: datasets hold the jobs (imported disabled). |
A new, empty database doesn't need any scripts.
To copy a Databucket database, e.g. to rehearse an upgrade or to test on a copy of the data, restore the copy into an empty database before Databucket starts on it:
- Make the copy:
pg_dump -h <host> -U <user> -d databucket -F c -f databucket.dump - Create an empty database:
CREATE DATABASE databucket_copy OWNER <user>; - Restore the copy into it:
pg_restore -h <host> -U <user> -d databucket_copy databucket.dump - Only now start Databucket with
spring.datasource.urlpointing todatabucket_copy.
Don't start Databucket on the empty database first. On its first start Databucket creates its tables and the default user with the SUPER role (see above). Restoring the copy afterwards fails on everything that already exists (pg_restore reports many "already exists" errors): the users of the copy are not restored, only the default user remains, and the users of the copy can't sign in. In that case drop the database, create it again and restore the copy, or restore with pg_restore --clean --if-exists -d databucket_copy databucket.dump.
Wiki
Work in the project
- Navigation
- Overview
- Searching
- Filtering
- Create/modify/remove data
- Data reservation
- Data details
- Data history
- Tasks execution
- Data export
- Data import
- Data generation
Project settings
Management
API