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
| Minimum | Recommended | |
|---|---|---|
| CPU | 2 vCPU | 4 vCPU |
| RAM | 4 GB | 8 GB |
| Disk | 40 GB SSD | 100 GB SSD (database, attachments, 14 days of backups) |
| OS | Linux x86_64: Ubuntu 22.04/24.04, Debian 12, RHEL/Alma/Rocky 9 | |
| Docker | Docker 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
| Service | What it does |
|---|---|
| caddy | The only open port; issues and renews the TLS certificate for your domain |
| web | The application, reachable only through caddy |
| worker | Background jobs: platform syncs, reports, license check, cleanup |
| migrate | Applies database migrations on every start; web starts only after it succeeds |
| postgres | The database |
| postgrest | Database access for the application with row-level security |
| minio | S3-compatible storage for attachments |
| backup | A daily database dump with rotation |
Installation
- Step 1Get from us: a login and token for
ghcr.ioand an activation codeMRKA1…for this installation. - Step 2Copy the
deploy/folder from the delivery to the server and sign in to the registry (command below). - Step 3Run
./install.shin thedeployfolder. It asks for the domain, administrator email and password (Enter generates one), organisation name, interface language and image. - Step 4Wait: the script creates
deploy/.envwith 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. - Step 5Save
deploy/.envsomewhere safe — a password manager or a vault. WithoutAPP_ENCRYPTION_KEYfrom it, saved platform keys cannot be restored even from a backup.
echo <token> | docker login ghcr.io -u <login> --password-stdin
cd deploy
./install.shFirst sign-in
- 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. - Step 2Sign in as the administrator.
- Step 3Open Settings → License, paste the activation code
MRKA1…and press Activate — see License. - Step 4Continue with First steps.
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.