Self-host LibreDB Studio with Levelrail

A browser based SQL and NoSQL client for PostgreSQL, MySQL, MongoDB, Redis and more, with a query editor, schema explorer and saved connections. MIT licensed. The admin password and session secret are generated for you and shown in the deployment variables.

  • Authorlibredb
  • LicenceMIT
  • Memory512 MiB
  • Archarm64
  • Services1

How to self-host LibreDB Studio

  1. Pull the images

    One image is pulled on your server.

    Show images
    • ghcr.io/libredb/libredb-studio:1.3.0
  2. Create the app

    One service starts in a single Compose app, with 1 named volume mount for your data, on port 3000.

  3. Fill in the secrets

    2 secrets are generated and stored encrypted, 6 settings are preset, you do not have to fill in anything.

  4. Open it

    Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.

After the first start

  • Sign in with the admin email and the generated password, then add a database connection from the sidebar.

LibreDB Studio requirements

Memory
About 512 MiB
Architectures
amd64 image published, arm64 image published
Ports
3000
Domain
Optional, an sslip.io address is used without one
Settings
none to fill in
License
MIT, permissive license
  • Listed. It is in the catalog but not verified. Back up the data volume before changing an image tag.

Install Levelrail first

On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then LibreDB Studio. New to Levelrail? Install it on a fresh VPS first.

docker pull ghcr.io/glincker/levelrail:latest

Then levelrail-cli login --device. See Getting started and the LibreDB Studio docs page.

Deploy LibreDB Studio your way

Every format below deploys the same pinned images. Pick the one that fits how you work.

Deploy LibreDB Studio from the CLI

Add --domain SERVICE=HOST to serve a service on your own domain, for example --domain libredb-studio=app.example.com.

levelrail-cli templates install libredb-studio --name my-libredb-studio

Deploy LibreDB Studio with the API

Create a token in the dashboard first. Name, env and domains are the request fields.

curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  https://levelrail.example.com/api/v1/service-templates/libredb-studio/install \
  -d '{
    "name": "my-libredb-studio"
  }'

LibreDB Studio configuration

LibreDB Studio services

ServiceImagePortsVolumes
libredb-studio ghcr.io/libredb/libredb-studio:1.3.0 3000 data -> /app/data

LibreDB Studio environment variables

VariableServiceValue
ADMIN_EMAIL libredb-studio Preset by the template
ADMIN_PASSWORD libredb-studio Generated at deploy
HOSTNAME libredb-studio Preset by the template
JWT_SECRET libredb-studio Generated at deploy
NEXT_PUBLIC_AUTH_PROVIDER libredb-studio Preset by the template
PORT libredb-studio Preset by the template
STORAGE_PROVIDER libredb-studio Preset by the template
STORAGE_SQLITE_PATH libredb-studio Preset by the template

Ports and volumes

Ports
3000
Volumes
1 named mount: data -> /app/data

LibreDB Studio FAQ

How much memory does LibreDB Studio need?

The catalog lists about 512 MiB of memory for LibreDB Studio.

Does LibreDB Studio run on arm64?

For LibreDB Studio, an arm64 image is published; amd64 is image published.

What licence is LibreDB Studio under?

LibreDB Studio is licensed under MIT, which is permissive, with few conditions on reuse.

Does LibreDB Studio need configuration before it starts?

No. The template fills in its own defaults and generates secrets at deploy time.

Which ports does LibreDB Studio use?

LibreDB Studio listens on port 3000 inside the stack.

Where does LibreDB Studio keep its data?

In a named volume: data mounted at /app/data.

Can I deploy LibreDB Studio on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for LibreDB Studio, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image ghcr.io/libredb/libredb-studio:1.3.0 is what you deploy there.

levelrail-cli templates install libredb-studio --name my-libredb-studio