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).
Install
Section titled “Install”Linux / macOS:
./loka.sh installWindows (PowerShell):
powershell -ExecutionPolicy Bypass -File loka.ps1 installThe 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.
Commands
Section titled “Commands”| 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_VERSIONin.envback to the old version, then runstart. - After a schema migration the old version cannot open the new catalog (it stops with
unsupported catalog schema). Runstop, setLOKA_VERSIONback, thenrestorethe backup thatupgradetook (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.