Skip to content
loomark

Documentation

How to install

Loomark on your own Linux server with Docker: requirements, installation and first sign-in.

The server delivery runs the whole application on your server in Docker. Data — database, files and backups — stays on the server.

Server requirements

MinimumRecommended
CPU2 vCPU4 vCPU
RAM4 GB8 GB
Disk40 GB SSD100 GB SSD (database, attachments, 14 days of backups)
OSLinux x86_64: Ubuntu 22.04/24.04, Debian 12, RHEL/Alma/Rocky 9
DockerDocker Engine 24+ and the docker compose plugin v2.20+
  • Domain: a separate name such as loomark.example.com, with an A/AAAA record pointing to the server’s IP.
  • Inbound ports: 80 and 443 (TCP). Port 80 is needed to issue the Let’s Encrypt certificate. No other ports are opened.
  • Outbound HTTPS: ghcr.io (image), our license server, Let’s Encrypt, the APIs of the platforms you connect, email (if used) and exchange rates.
  • Server time synchronised over NTP: file links and tokens are signed with it.

What gets installed

ServiceWhat it does
caddyThe only open port; issues and renews the TLS certificate for your domain
webThe application, reachable only through caddy
workerBackground jobs: platform syncs, reports, license check, cleanup
migrateApplies database migrations on every start; web starts only after it succeeds
postgresThe database
postgrestDatabase access for the application with row-level security
minioS3-compatible storage for attachments
backupA daily database dump with rotation

Installation

  1. Step 1Get from us: a login and token for ghcr.io and an activation code MRKA1… for this installation.
  2. Step 2Copy the deploy/ folder from the delivery to the server and sign in to the registry (command below).
  3. Step 3Run ./install.sh in the deploy folder. It asks for the domain, administrator email and password (Enter generates one), organisation name, interface language and image.
  4. Step 4Wait: the script creates deploy/.env with permissions 600 and generates all keys, pulls the images, starts the database and storage, applies migrations, starts the services and creates your organisation and administrator.
  5. Step 5Save deploy/.env somewhere safe — a password manager or a vault. Without APP_ENCRYPTION_KEY from it, saved platform keys cannot be restored even from a backup.
Shell
echo <token> | docker login ghcr.io -u <login> --password-stdin
cd deploy
./install.sh

First sign-in

  1. Step 1At the end the script prints the sign-in address, https://<domain>/login, the email and — if it was generated — the password. The password is shown once: save it and change it after the first sign-in.
  2. Step 2Sign in as the administrator.
  3. Step 3Open Settings → License, paste the activation code MRKA1… and press Activate — see License.
  4. Step 4Continue with First steps.

Email

Sign-in links, invitations, password reset and scheduled reports are sent through Resend. Uncomment RESEND_API_KEY and MAIL_FROM in .env and run docker compose up -d. Without email, password sign-in works and the administrator adds people in Team and access.

Trying it on your machine

DOMAIN=localhost — Caddy issues a self-signed certificate (the browser warns). DOMAIN=http://localhost with HTTP_PORT=8080 — no TLS, the address is http://localhost:8080.