Self-host LibreDB Studio on a managed VPS: a database editor in your browser

To self-host LibreDB Studio on a managed VPS is to open your databases from a browser tab, through an editor that runs next to them on a server of your own, which our teams keep up to date and monitor day and night. LibreDB Studio is a free, open source SQL and NoSQL editor under the MIT license, for PostgreSQL, MySQL, SQL Server, MongoDB, Redis, SQLite and dozens of other engines. This guide follows its official Docker image at version 1.3.0, and we ran every command on a Simafri VPS before writing it: installation with Docker Compose, server storage in SQLite, HTTPS, a first connection, backups and updates.

Simon Vasconcelos Lee By Published on 29 November 202610 minute read

All guides Development and DevOps

In short

  1. The MIT license lets you run LibreDB Studio for your team or your clients with no license to buy; single sign-on, the audit log and the AI features ship in the same build.
  2. Install it with Docker Compose: the image ghcr.io/libredb/libredb-studio, with port 3000 published on 127.0.0.1 behind an HTTPS reverse proxy.
  3. Set STORAGE_PROVIDER=sqlite on a volume, otherwise connections and saved queries live only in the browser.
  4. Put ADMIN_PASSWORD, JWT_SECRET and STORAGE_ENCRYPTION_KEY in a .env file and turn off the first-run generator with AUTH_BOOTSTRAP=off.
  5. Back up the data volume with Studio stopped, and keep .env apart: without its key, saved database passwords cannot be read back. To update, change the image tag.

What LibreDB Studio does

LibreDB Studio is a database editor that runs as a web application. Instead of installing a desktop client on every computer, or opening your database to the internet, you deploy Studio next to your data and open it in a browser. Its README counts forty-two engines behind one interface.

What the MIT license allows

LibreDB Studio is published under the MIT license. You can use it free of charge, for your company or your clients, copy it, modify it and redistribute it, as long as the copyright notice and the license text travel with it. The software is provided without warranty.

The project keeps nothing behind a paid edition: single sign-on, role-based access, the audit log and ER diagrams are in the MIT build. One direct dependency, elkjs, is under the EPL-2.0, as the README notes.

The resources to plan for

Studio is a Node.js application in a single container. Here is what we measured on our test VPS, with 2 vCPU and 4 GB of memory, once it was serving a connection and a saved query:

The databases you open and the size of the results you load weigh more than Studio itself. On a managed VPS, tell us about your usage and we will recommend the right size.

Installing with Docker Compose

The project publishes its image on the GitHub Container Registry, ghcr.io/libredb/libredb-studio, with a mirror on Docker Hub. On a server with Docker Engine and its Compose plugin, installed from Docker’s repository for Ubuntu, create a folder such as /opt/libredb-studio and put this compose.yaml in it, based on the project’s docker-compose.example.yml:

compose.yaml
services:
  studio:
    image: ghcr.io/libredb/libredb-studio:1.3.0
    restart: unless-stopped
    ports:
      - "127.0.0.1:8109:3000"
    environment:
      ADMIN_EMAIL: admin@example.com
      ADMIN_PASSWORD: ${ADMIN_PASSWORD:?set ADMIN_PASSWORD in .env}
      JWT_SECRET: ${JWT_SECRET:?set JWT_SECRET in .env}
      STORAGE_ENCRYPTION_KEY: ${STORAGE_ENCRYPTION_KEY:?set STORAGE_ENCRYPTION_KEY in .env}
      AUTH_BOOTSTRAP: "off"
      STORAGE_PROVIDER: sqlite
      STORAGE_SQLITE_PATH: /app/data/libredb-storage.db
    volumes:
      - studio_data:/app/data
    healthcheck:
      test: ["CMD", "node", "-e", "fetch('http://localhost:3000/api/db/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"]
      interval: 30s
      timeout: 5s
      retries: 3
      start_period: 20s

volumes:
  studio_data:

The three secrets go in a .env file next to it, which Docker Compose reads on its own. Create it readable by root only, then start Studio:

Terminal, in /opt/libredb-studio
umask 077
printf 'ADMIN_PASSWORD=%s\nJWT_SECRET=%s\nSTORAGE_ENCRYPTION_KEY=%s\n' "$(openssl rand -hex 16)" "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
umask 022
docker compose up -d
docker compose ps

Studio answered within a few seconds of starting on our test VPS. To check that it is ready and that server storage is on:

Terminal, in /opt/libredb-studio
until curl -sf http://127.0.0.1:8109/api/health >/dev/null; do sleep 5; done
curl -s http://127.0.0.1:8109/api/storage/config
docker compose logs studio | grep -E "LibreDB Studio [0-9]"

The second command returns {"provider":"sqlite","serverMode":true}, and the third prints the version, LibreDB Studio 1.3.0.

HTTPS: the reverse proxy

The container serves Studio over HTTP, on port 8109 of the server. HTTPS is handled by a reverse proxy in front of it, which must forward the public Host header and X-Forwarded-Proto. We tested Caddy, installed from its official Debian and Ubuntu repository: it obtains the Let’s Encrypt certificate itself, renews it, and forwards these headers by default.

/etc/caddy/Caddyfile
libredb-studio.example.com {
	reverse_proxy 127.0.0.1:8109
}
Terminal
sudo systemctl reload caddy
curl -sI https://libredb-studio.example.com/

Signing in and connecting a first database

Open your address: Studio shows its sign-in page. Sign in with the email of ADMIN_EMAIL and the password generated in .env, which this command displays:

Terminal
grep ADMIN_PASSWORD /opt/libredb-studio/.env

Studio already lists a built-in “Sample (Employees)” connection: a small SQLite database that the image copies into the data volume on first start, to try the editor. Your own databases are added as connections, and Studio reaches them from the server: by their address for a database on another machine, or by their service name for a database in the same compose.yaml.

A demo PostgreSQL to try it

To have a database to open, we added PostgreSQL 18 to the same compose.yaml on our test VPS. Add this service after the studio service, and demo_pgdata: under volumes:, at the end of the file:

compose.yaml, after the studio service
  demo-db:
    image: postgres:18
    restart: unless-stopped
    environment:
      POSTGRES_USER: demo
      POSTGRES_DB: demo
      POSTGRES_PASSWORD: ${DEMO_DB_PASSWORD:?set DEMO_DB_PASSWORD in .env}
    volumes:
      - demo_pgdata:/var/lib/postgresql

Then add its password to .env, start it and create a small table:

Terminal, in /opt/libredb-studio
umask 077
printf 'DEMO_DB_PASSWORD=%s\n' "$(openssl rand -hex 16)" >> .env
umask 022
docker compose up -d
docker compose exec -T demo-db psql -U demo -d demo -c "CREATE TABLE products (id serial PRIMARY KEY, name text NOT NULL, price numeric(8,2)); INSERT INTO products (name, price) VALUES ('Notebook', 4.50), ('Pen', 1.20), ('Backpack', 39.00);"
grep DEMO_DB_PASSWORD /opt/libredb-studio/.env

In Studio, add a connection of type PostgreSQL with the host demo-db, the port 5432, the user and the database demo, and the password displayed by the last command. Test it, save it, then run SELECT name, price FROM products ORDER BY price DESC and save the query.

On our test VPS, we created this connection and the saved query through Studio’s own HTTP API, the one its web interface calls: the connection test succeeded, the query returned its three rows, a wrong password was refused at sign-in, and both items were stored in the SQLite file, the connection password encrypted, never in clear text.

Once you have connected your own databases, delete the demo-db service and the demo_pgdata line from compose.yaml, then remove the container and its volume:

Terminal, in /opt/libredb-studio
docker compose up -d --remove-orphans
docker volume rm libredb-studio_demo_pgdata

Backups

Studio keeps everything in the studio_data volume: the SQLite store with connections, saved queries and history, its -wal and -shm files, and the sample database. The keys are in .env. The store is a live SQLite database, so the safest copy is taken with Studio stopped, for a few seconds, with the tar of the image:

Terminal, in /opt/libredb-studio
umask 077
docker compose stop studio
docker compose run --rm --no-deps -T --entrypoint tar studio -C /app/data -czf - . > studio-data-$(date +%F).tar.gz
docker compose start studio
cp .env env-$(date +%F).bak
umask 022

Restoring

On the same installation, or on a new one with the same compose.yaml and .env, stop Studio, remove the data volume, then load the archive into a new, empty volume and start Studio only if the archive was read in full:

Terminal, in /opt/libredb-studio
docker compose down
docker volume rm libredb-studio_studio_data
docker compose run --rm --no-deps -T --entrypoint tar studio -C /app/data -xzf - < studio-data-2026-11-20.tar.gz && docker compose up -d

We tested the whole cycle on our VPS: the archive, the volume removed and recreated empty, then the restore. A truncated archive first: tar stopped on “Unexpected EOF”, returned an error, and Studio stayed stopped. Then the complete archive: after signing in again, the connection and the saved query were back, the connection password decrypted with the key of .env, and the saved query ran on the demo database.

Updates

LibreDB Studio publishes releases often, and the image follows on ghcr.io with the same numbers: 1.3.0 came out on 10 November 2026, ten days after 1.2.0. This guide pins 1.3.0, the latest release when we tested it: check the releases page before you install. Studio creates the tables of its store on its own, so there is no migration to run. Take a backup, change the image tag in compose.yaml, then pull the new image and recreate the container:

Terminal, in /opt/libredb-studio
docker compose pull
docker compose up -d
docker compose logs studio | grep -E "LibreDB Studio [0-9]"

Who does what on a managed VPS

Self-hosting means running the server on top of the application. On a managed VPS, our teams take charge of the server and proactively monitor your instance; LibreDB Studio remains your software, with your connections and your settings.

TopicOur teamsYou
The serverSystem and security updates, server interventions includedThe timing that suits you
MonitoringServer monitored 24/7, with intervention without waiting for your callYour connections and saved queries in Studio
LibreDB StudioProactive monitoring: errors, slowdowns, resources and disk space spotted, fix recommendedIts installation, updates and settings, which you apply, yourself or through your AI assistant
AccessThe server that carries it, monitored and backed upAccounts, single sign-on and the databases Studio may reach
BackupsEvery night, encrypted and kept off the machine; restores includedStudio’s own archives and the copy of .env, and the restore request, when you need one
MigrationYour current server migrated, free of chargeThe timing of the switch

If you would rather have our teams work inside the application itself, that service is billed by the hour or at a fixed rate, with an estimate shared before the work starts.

LibreDB Studio, on a server run for you

With a Simafri Managed VPS, our teams keep your LibreDB Studio server up to date, monitor it day and night and step in without waiting for your call; they also proactively monitor your instance and recommend useful fixes, which you apply, yourself or through your AI assistant. Backups are encrypted every night and kept off the machine, restores are included, and migrating your current server is free.

Explore Managed VPS

Frequently asked questions

Is LibreDB Studio free?

Yes. LibreDB Studio is under the MIT license: you can run it for your team or your clients with no license to buy, and single sign-on, the audit log and ER diagrams are in the same build. What remains is the cost of the server that runs it.

How do I install LibreDB Studio with Docker Compose?

Use the ghcr.io/libredb/libredb-studio image in a compose.yaml, with STORAGE_PROVIDER=sqlite and a volume on /app/data. Put ADMIN_PASSWORD, JWT_SECRET and STORAGE_ENCRYPTION_KEY in a .env file, set AUTH_BOOTSTRAP to off, publish port 3000 on 127.0.0.1, run docker compose up -d, and put an HTTPS reverse proxy in front.

Where does LibreDB Studio store connections?

In the browser by default, which suits a quick trial on your own computer. On a server, set STORAGE_PROVIDER to sqlite or postgres: connections, saved queries and history are then stored server-side, in a private workspace per account, with the connection passwords encrypted.

What is the default LibreDB Studio login?

The administrator is admin@libredb.org unless you set ADMIN_EMAIL. Without ADMIN_PASSWORD, the first start generates a password and prints it once to the container log. In production, set your own password in .env and turn the generator off with AUTH_BOOTSTRAP=off.

How much memory does LibreDB Studio need?

Little. On our test VPS, the Studio container used about 155 MB at rest, and the image takes about 350 MB of disk. The image caps the Node.js heap at 384 MB.

How do I back up LibreDB Studio in Docker?

Stop the studio service, archive /app/data with the tar of the image through docker compose run, start it again, and keep a copy of .env elsewhere. To restore, remove the volume, extract the archive into a new one with the same .env, then start Studio.

How do I update LibreDB Studio in Docker?

Take a backup, change the image tag in compose.yaml, then run docker compose pull and docker compose up -d. Studio creates the tables of its store on its own; read the Action required lines of the release notes first.

Does a managed VPS cover LibreDB Studio?

A managed VPS covers the server: system, security, monitoring and backups. Our teams also proactively monitor your instance and recommend useful fixes, which you apply. Work inside the application is billed by the hour or at a fixed rate.

Contact us