Skip to content

Installation

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

Create the Compose project

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

services:
  avenvail:
    image: ghcr.io/avenvail/avenvail:0.7
    restart: unless-stopped
    ports:
      - "8080:8080"
    volumes:
      - avenvail-data:/data
      - ./backups:/backups
    env_file: .env

volumes:
  avenvail-data:

and a .env next to it:

Avenvail__BaseUrl=https://files.example.com

Avenvail__BaseUrl is the address people and ShareX use to reach Avenvail. Every link Avenvail 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 avenvail-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 Avenvail is ready

Put Avenvail 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 Avenvail is only reachable through the proxy.

Create the administrator

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

docker compose exec avenvail 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 Avenvail__BootstrapSecret or Avenvail__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 (avenvail.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/avenvail.lockHeld while Avenvail runs, so two servers can never share one database

Back up /data with Avenvail's own backup command, not by copying the folder while Avenvail 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/avenvail/avenvail.git && cd avenvail
cp .env.example .env       # set Avenvail__BaseUrl
docker compose up --build