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.
By Simon Vasconcelos Lee
Published on 29 November 202610 minute read
ghcr.io/libredb/libredb-studio, with port 3000 published on 127.0.0.1 behind an HTTPS reverse proxy.STORAGE_PROVIDER=sqlite on a volume, otherwise connections and saved queries live only in the browser.ADMIN_PASSWORD, JWT_SECRET and STORAGE_ENCRYPTION_KEY in a .env file and turn off the first-run generator with AUTH_BOOTSTRAP=off..env apart: without its key, saved database passwords cannot be read back. To update, change the image tag.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.
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.
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:
NODE_OPTIONS.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.
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:
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:
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
STORAGE_PROVIDER=sqlite keeps them on the server, in a private workspace per account, in the studio_data volume. PostgreSQL is the other option, meant for several replicas.AUTH_BOOTSTRAP: "off": without it, Studio generates a password and a JWT secret on first start and stores them in the data volume. The project recommends turning it off in production, which is what makes the three variables of .env required.JWT_SECRET signs the sessions and must be at least 32 characters, otherwise Studio refuses to start. Here, 64 hexadecimal characters.STORAGE_ENCRYPTION_KEY encrypts the passwords of saved connections, in AES-256-GCM. Without it, Studio derives the key from JWT_SECRET; with a key of its own, you can rotate the session secret without losing the saved passwords.ADMIN_EMAIL is the login of the administrator. A second account, with query rights only, exists if you set USER_EMAIL and USER_PASSWORD; without them, there is none.127.0.0.1, as port 8109 of the server: the example of the project publishes it on every address. Published locally, Studio is reachable only through the reverse proxy.latest. A full version, here 1.3.0, lets you choose when each update happens. The healthcheck comes from the example: it calls Node.js, since the image has no curl.Studio answered within a few seconds of starting on our test VPS. To check that it is ready and that server storage is on:
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.
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.
libredb-studio.example.com {
reverse_proxy 127.0.0.1:8109
}
sudo systemctl reload caddy
curl -sI https://libredb-studio.example.com/
curl answered HTTP/2 307 to /login, with Studio’s security headers and HSTS.Origin of every form it receives with the Host header, which Caddy keeps, and names its session cookie __Host-auth-token, marked secure, once served over HTTPS. There is nothing to set for this.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:
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.
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:
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:
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:
docker compose up -d --remove-orphans
docker volume rm libredb-studio_demo_pgdata
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:
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
.env holds STORAGE_ENCRYPTION_KEY. Store the copy of .env somewhere else than the archives: one without the other reveals nothing, and the archives cannot be read back without the key.umask 077 creates both files with the mode 600.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:
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.
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:
docker compose pull
docker compose up -d
docker compose logs studio | grep -E "LibreDB Studio [0-9]"
main and dev tags follow unreleased code, and latest moves at each release: stay on version tags.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.
| Topic | Our teams | You |
|---|---|---|
| The server | System and security updates, server interventions included | The timing that suits you |
| Monitoring | Server monitored 24/7, with intervention without waiting for your call | Your connections and saved queries in Studio |
| LibreDB Studio | Proactive monitoring: errors, slowdowns, resources and disk space spotted, fix recommended | Its installation, updates and settings, which you apply, yourself or through your AI assistant |
| Access | The server that carries it, monitored and backed up | Accounts, single sign-on and the databases Studio may reach |
| Backups | Every night, encrypted and kept off the machine; restores included | Studio’s own archives and the copy of .env, and the restore request, when you need one |
| Migration | Your current server migrated, free of charge | The 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Simafri
Let's talk about your project
Tell us what you need in a few words: we will get back to you quickly.
Thank you! Your request has been sent. We'll get back to you shortly.
Prefer email? Write to us at support@simafri.com.