Self-host Saltcorn on a managed VPS: your no-code database apps

To self-host Saltcorn on a managed VPS is to keep your no-code applications, and the data they hold, on a server of your own, which our teams keep up to date and monitor day and night. Saltcorn is a free, open source builder of database applications under the MIT license: tables, forms, lists, pages and user roles, without writing code. This guide installs version 1.6.4 on top of its official Docker image, and we ran every command on a Simafri VPS before writing it: installation with Docker Compose and PostgreSQL, HTTPS, the first administrator, backups, a restore and an update.

Simon Vasconcelos Lee By Published on 3 December 202612 minute read

All guides Development and DevOps

In short

  1. The MIT license lets you run Saltcorn for your company, your association or your clients with no license to buy, and build as many applications as you like on it.
  2. Install it with Docker Compose and PostgreSQL 17, with port 3000 of the container published on 127.0.0.1 behind an HTTPS reverse proxy.
  3. On 20 November 2026, the 1.6.4 and latest images on Docker Hub still contained Saltcorn 1.6.2: a two-line Dockerfile installs 1.6.4, with its security fixes, on top of the official image.
  4. Create the database tables once with add-schema, then the first account you create in the browser becomes the administrator.
  5. Set the base URL and secure cookies with set-cfg, back up with pg_dump and an archive of the files volume, and update by changing the version and rebuilding.

What Saltcorn does

Saltcorn describes itself as an extensible open source no-code database application builder. You design your tables in the browser, then the screens that show and edit them, and your colleagues use the result as a web application, with their own accounts and permissions. Its developer, Tom Nielsen, and its contributors write it in Node.js, on top of PostgreSQL.

What the MIT license allows

Saltcorn is published under the MIT license, one of the most permissive open source licenses. You can use it free of charge, for yourself, your company or your clients, copy it, modify it and redistribute it, including inside a commercial offer, provided you keep its copyright notice and license text. The software is provided without warranty.

The modules of the store have their own licenses, set by their authors. The free hosted instance at saltcorn.com is meant for trying Saltcorn out: its README states that it comes with no guarantee about the security or availability of your data, which is one reason to run your own.

The resources to plan for

The README of Saltcorn says that a virtual private server with 2 GB of memory is enough unless you expect heavy traffic, and that 1 GB can work but may cause trouble during upgrades. Here is what we measured on our test VPS, with 2 vCPU and 4 GB:

Server size therefore depends on the number of users, the applications you build and the other services you run beside Saltcorn. On a managed VPS, tell us about your usage and we will recommend the right size.

Installing with Docker Compose

You need Docker Engine and its Compose plugin. On Ubuntu, install them from Docker’s repository, as root:

Terminal
apt-get update -qq && apt-get install -y -qq ca-certificates curl >/dev/null && install -m 0755 -d /etc/apt/keyrings && curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc && chmod a+r /etc/apt/keyrings/docker.asc && echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo $VERSION_CODENAME) stable" > /etc/apt/sources.list.d/docker.list && apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin >/dev/null && docker --version && docker compose version

The image: version 1.6.4 on top of the official one

Saltcorn publishes the image saltcorn/saltcorn on Docker Hub, built from a Dockerfile.release that installs the command-line package @saltcorn/cli from npm. At tag v1.6.4, that file still installs version 1.6.2. On 20 November 2026, the 1.6.4 and latest tags, which share the same image, therefore answered @saltcorn/cli/1.6.2, without the security fixes of 1.6.3 and 1.6.4, among them an SQL injection and a flaw in the password reset route. You can check the image you are about to use:

Terminal
docker run --rm saltcorn/saltcorn:latest --version

Until the image matches its tag again, these two lines install 1.6.4 on top of it, the way the official Dockerfile does. Create a folder such as /opt/saltcorn and put this Dockerfile in it:

Dockerfile
FROM saltcorn/saltcorn:1.6.4
RUN npm install -g @saltcorn/cli@1.6.4 --omit=dev

The Compose file

Next to it, this compose.yaml, based on the example of the Saltcorn repository and on its wiki page about Docker:

compose.yaml
services:
  saltcorn-db:
    image: postgres:17-alpine
    restart: unless-stopped
    environment:
      - POSTGRES_DB=saltcorn
      - POSTGRES_USER=saltcorn
      - POSTGRES_PASSWORD=${PGPASSWORD:?set PGPASSWORD in .env}
    volumes:
      - postgres_data:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U saltcorn -d saltcorn"]
      interval: 5s
      timeout: 5s
      retries: 10

  saltcorn:
    build:
      context: .
      network: host
    image: saltcorn-local:1.6.4
    command: serve
    restart: unless-stopped
    ports:
      - "127.0.0.1:8117:3000"
    environment:
      - PGHOST=saltcorn-db
      - PGUSER=saltcorn
      - PGDATABASE=saltcorn
      - PGPASSWORD=${PGPASSWORD}
      - SALTCORN_SESSION_SECRET=${SALTCORN_SESSION_SECRET:?set SALTCORN_SESSION_SECRET in .env}
      - SALTCORN_FILE_STORE=/files
      - SALTCORN_NWORKERS=2
    volumes:
      - saltcorn_files:/files
    depends_on:
      saltcorn-db:
        condition: service_healthy

volumes:
  postgres_data:
  saltcorn_files:

The two secrets go in a .env file, which Docker Compose reads on its own. Create it readable by root only, build the image, create the Saltcorn tables in the empty database, then start the stack:

Terminal, in /opt/saltcorn
umask 077
printf 'PGPASSWORD=%s\nSALTCORN_SESSION_SECRET=%s\n' "$(openssl rand -hex 24)" "$(openssl rand -hex 32)" > .env
umask 022
docker compose build --pull
docker compose run --rm saltcorn add-schema -f
docker compose up -d
docker compose ps

On our test VPS, the build took about two minutes and the application answered a few seconds after up. To check that it responds:

Terminal
curl -s -o /dev/null -w "%{http_code} %{redirect_url}\n" http://127.0.0.1:8117/

A new instance answers 302 with a redirect to /auth/create_first_user: Saltcorn is waiting for its first account.

HTTPS: the reverse proxy

The container serves Saltcorn over HTTP. HTTPS is handled by a reverse proxy in front of it. We tested Caddy, installed from its official repository for Debian and Ubuntu: it obtains the Let’s Encrypt certificate itself and renews it.

Terminal
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq debian-keyring debian-archive-keyring apt-transport-https gnupg >/dev/null && curl -1sLf https://dl.cloudsmith.io/public/caddy/stable/gpg.key | gpg --dearmor --yes -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg && curl -1sLf https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt > /etc/apt/sources.list.d/caddy-stable.list && chmod o+r /usr/share/keyrings/caddy-stable-archive-keyring.gpg /etc/apt/sources.list.d/caddy-stable.list && apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq caddy >/dev/null && caddy version && systemctl is-active caddy
/etc/caddy/Caddyfile
saltcorn.example.com {
	reverse_proxy 127.0.0.1:8117
}
Terminal
sudo systemctl reload caddy
curl -sI https://saltcorn.example.com/

Then tell Saltcorn its public address, which it uses in the links it generates and in its emails, and to mark its session cookie Secure. Behind a proxy, the container only sees HTTP, so this option is off by default:

Terminal, in /opt/saltcorn
docker compose exec saltcorn saltcorn set-cfg base_url https://saltcorn.example.com/
docker compose exec saltcorn saltcorn set-cfg force_secure_cookies true
docker compose restart saltcorn

The first account, a table and its first row

Saltcorn has no default account. The first one you create gets the admin role:

  1. Open your address: Saltcorn redirects you to “Create first user”.
  2. Choose the language, enter your email address and a strong password, then click “Create user”: you are signed in as administrator.
  3. From the settings, add the other accounts and give each one a role.

The same page offers to restore a Saltcorn backup instead, to bring back an application exported from another instance.

To check the whole chain, we created a table from a CSV file with a header line and one row: under “Tables”, “Create from CSV upload”, a name and the file. Saltcorn answered “Created table plants. Imported 1 rows into table plants”, with a field for each column and their types guessed, and the row was then served, after sign-in, by its REST API at /api/plants/. A text file uploaded to the file manager landed in the saltcorn_files volume.

Backups

Your data lives in two places: the PostgreSQL database, in the postgres_data volume, and the uploaded files, in saltcorn_files. Keep your .env file too. The PostgreSQL image includes pg_dump. The backup holds every account and every row, so create it readable by root only, with umask 077 inside parentheses: the rest of your session keeps its usual mask. A file that already exists keeps its permissions when it is overwritten, so the find line first closes the backups already in the folder, before anything is written, and stops if it cannot:

Terminal, in /opt/saltcorn
(
  umask 077
  find . -maxdepth 1 \( -name 'saltcorn-*.dump' -o -name 'files-*.tar.gz' -o -name 'env-*.bak' \) -exec chmod 600 {} + || exit 1
  docker compose exec -T saltcorn-db pg_dump -U saltcorn -Fc saltcorn > saltcorn-$(date +%F).dump
  docker compose exec -T saltcorn tar -czf - -C /files . > files-$(date +%F).tar.gz
  cp .env env-$(date +%F).bak
)

Schedule this copy and send it off the server. Stored on the disk, these files are also included in the server’s nightly backups.

Restoring

On the same or a new installation, with the same .env: stop the application, replace the database with an empty one, load the dump into it, empty the files volume and unpack the archive into it, then start the application again:

Terminal, in /opt/saltcorn
BACKUP_DATE=2026-11-20
(
  set -e
  for f in saltcorn-$BACKUP_DATE.dump files-$BACKUP_DATE.tar.gz; do
    test -s "$f" || { echo "Missing or empty: $f"; exit 1; }
  done
  docker compose stop saltcorn
  docker compose exec -T saltcorn-db dropdb -U saltcorn saltcorn
  docker compose exec -T saltcorn-db createdb -U saltcorn saltcorn
  docker compose exec -T saltcorn-db pg_restore -U saltcorn -d saltcorn --exit-on-error --no-owner < saltcorn-$BACKUP_DATE.dump
  docker compose run --rm -T --no-deps --entrypoint sh saltcorn -c 'find /files -mindepth 1 -delete && tar -xzf - -C /files' < files-$BACKUP_DATE.tar.gz
  docker compose start saltcorn
)

Set BACKUP_DATE, on the first line, to the date in the names of the backup you restore, as listed by ls. The commands run in parentheses with set -e, which stops them at the first error. They first check that each file exists and is not empty, before anything is stopped, removed or overwritten: a wrong date stops there, with your data untouched, and a failed step stops every step after it, so the application is never started again on a partial restore.

We tested the whole cycle on our VPS with these exact commands: backup, then the row and the file deleted, then the database dropped and created again empty, the files volume emptied, and the restore. The administrator signed in again, the row came back through the API, and the file through the file manager.

Updates

Saltcorn releases a new minor version every few months, with fixes in between; the CHANGELOG lists what changes, security fixes included. The image sets SALTCORN_DISABLE_UPGRADE, which turns off upgrading from the administration: you update by changing the image. Take a backup, put the new version in the two lines of the Dockerfile and in the image line of compose.yaml, then rebuild and recreate the container. The database migrations run on their own at startup:

Terminal, in /opt/saltcorn
docker compose build --pull
docker compose up -d
docker compose exec saltcorn saltcorn --version

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; Saltcorn remains your software, with your applications and your data.

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 tables, views, pages and triggers in Saltcorn
SaltcornProactive monitoring: errors, slowdowns, database and disk space spotted, fix recommendedIts installation, updates, modules and settings, which you apply, yourself or through your AI assistant
UsersThe server that carries them, monitored and backed upAccounts, roles and the permissions of each table
BackupsEvery night, encrypted and kept off the machine; restores includedSaltcorn’s own database dumps and file archives, 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.

Saltcorn, on a server run for you

With a Simafri Managed VPS, our teams keep your Saltcorn instance’s 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 Saltcorn free?

Yes. Saltcorn is under the MIT license: you can run it for your company, your association or your clients with no license to buy. Modules from the store have their own licenses. What remains is the cost of the server that runs it.

How do I install Saltcorn with Docker Compose?

Use PostgreSQL 17 and the Saltcorn image in a compose.yaml, put the database password and SALTCORN_SESSION_SECRET in a .env file, publish port 3000 on 127.0.0.1, run docker compose run --rm saltcorn add-schema -f once to create the tables, then docker compose up -d, and put an HTTPS reverse proxy in front.

Does the saltcorn/saltcorn:1.6.4 image contain Saltcorn 1.6.4?

Not on 20 November 2026: the 1.6.4 and latest tags contained @saltcorn/cli 1.6.2, because the Dockerfile used to build them still installs 1.6.2. Check with docker run --rm saltcorn/saltcorn:latest --version. This guide adds a two-line Dockerfile that installs 1.6.4 on top of the official image.

What is the default Saltcorn login?

There is none. On a new instance, Saltcorn opens “Create first user”: the account you create there becomes the administrator. You then add the other users and their roles from the settings.

How much memory does Saltcorn need?

Its README recommends a server with 2 GB. On our test VPS, Saltcorn used about 420 MB with two workers and PostgreSQL 35 to 80 MB; set SALTCORN_NWORKERS to your number of vCPUs, since Saltcorn may detect more cores than your server has.

How do I back up Saltcorn?

Dump the database with docker compose exec -T saltcorn-db pg_dump -U saltcorn -Fc saltcorn and archive the files volume with tar, under umask 077, and keep a copy of your .env file. To restore, stop the application, recreate the database empty with dropdb and createdb, load the dump with pg_restore --exit-on-error --no-owner, then unpack the files.

How do I update Saltcorn?

Take a backup, change the version in the Dockerfile and compose.yaml, then run docker compose build --pull and docker compose up -d. The database migrations run on their own at startup; saltcorn --version in the container confirms the version.

Does a managed VPS cover Saltcorn?

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