Skip to content

Installation

Run Tessra with Docker Compose, create the administrator, and know what lives in the data volume.

Create the Compose project

Make a folder (for example /opt/tessra) with this compose.yaml:

services:
  tessra:
    image: ghcr.io/brostro/tessra:0.1
    restart: unless-stopped
    ports:
      - "8080:8080"
    volumes:
      - tessra-data:/data
      - ./backups:/backups
    env_file: .env

volumes:
  tessra-data:

and a .env next to it:

Tessra__BaseUrl=https://files.example.com

Tessra__BaseUrl is the address people and ShareX use to reach Tessra. Every link Tessra generates starts with it, and sign-in only accepts requests from that origin, so it must match exactly (scheme, host and port). See Configuration for everything else.

Images are published for linux/amd64 and linux/arm64. Pick the tag that matches how you want to update:

TagWhat you get on docker compose pull
0.1The newest 0.1.x release. Patch releases only, so no surprises. Recommended.
0.1.0Exactly that release, never changes.
latestThe newest release, including new minor versions.
mainThe newest build of the main branch. Untested between releases; for trying out unreleased work.

Every main build is also tagged with its full commit SHA. Moving to a new minor version (for example 0.1 to 0.2) is a deliberate change: see Upgrades.

The container runs as user 1654, not root. The named volume tessra-data gets the right owner automatically. The ./backups bind mount needs it set once on Linux:

mkdir -p backups && sudo chown 1654 backups && sudo chmod 700 backups

To keep /data in a host folder instead of a named volume, do the same for that folder and use ./data:/data.

Start it

docker compose up -d
docker compose ps          # STATUS shows "healthy" once Tessra is ready

Put Tessra behind a reverse proxy that terminates HTTPS before exposing it. See Reverse proxies and HTTPS. Once the proxy is in place, remove the ports: mapping or bind it to 127.0.0.1:8080:8080 so Tessra is only reachable through the proxy.

Create the administrator

On first start there is no account and no default password. Tessra writes a one-time setup secret to /data/bootstrap-secret and logs where it is:

docker compose exec tessra cat /data/bootstrap-secret

Open your base URL, enter the secret and choose the administrator's user name and password (12 characters or more). Setup can only happen once. The secret file is deleted when it completes.

To supply your own secret instead (for example from a Docker secret), set Tessra__BootstrapSecret or Tessra__BootstrapSecretFile. See Configuration.

Connect ShareX

In Settings › ShareX, create a token and download the .sxcu file, then double-click it on the Windows machine running ShareX. Configure ShareX walks through it.

What lives in /data

PathContents
/data/db/The SQLite database (tessra.db plus its -wal and -shm files)
/data/blobs/File contents, when using local storage
/data/keys/Encryption keys for sessions and stored share links
/data/temp/Scratch space for backups and restores
/data/tessra.lockHeld while Tessra runs, so two servers can never share one database

Back up /data with Tessra's own backup command, not by copying the folder while Tessra runs. Do not put /data on a network filesystem (NFS, SMB): SQLite locking is not reliable there.

Building from source

git clone https://github.com/BrOstro/tessra.git && cd tessra
cp .env.example .env       # set Tessra__BaseUrl
docker compose up --build