Skip to content

Docker bundle

Offline package: the two images (images/*.tar.gz), a Compose file and a manager script. Needs Docker Engine with Compose v2 (Linux) or Docker Desktop (Windows / macOS).

Linux / macOS:

Terminal window
./loka.sh install

Windows (PowerShell):

Terminal window
powershell -ExecutionPolicy Bypass -File loka.ps1 install

The script loads the images and creates the data volume loka-server-data. It then starts Loka at http://127.0.0.1:8080 and prints a one-time setup code. Open the console and create the first administrator with it.

Before the first start, you can change the port, the address and the public URL in .env. The script creates .env from env.example.

Command What it does
start, stop, status, logs Run and inspect the two containers
setup-code Show the one-time code again, until the first administrator exists
backup Stops the services for a moment and writes a cold .tgz + .sha256 to backups/
restore FILE --replace-live-data (-File … -ReplaceLiveData on Windows) Takes a safety backup, then replaces the data with the archive
upgrade Run from the folder of a newer bundle after copying your .env into it. A schema change needs --allow-migration (-AllowMigration), and a backup is taken first

Rollback after an upgrade: the old images are kept.

  • Without a schema change: set LOKA_VERSION in .env back to the old version, then run start.
  • After a schema migration the old version cannot open the new catalog (it stops with unsupported catalog schema). Run stop, set LOKA_VERSION back, then restore the backup that upgrade took (its path is printed at the end of the upgrade). Changes made after the upgrade are lost.

The data volume is never deleted by these scripts. Never run docker compose down -v or docker volume prune for this project. Backups contain secrets (session key, PostGIS passwords), so keep them private.