Skip to content

Installation

Fret runs with Docker (recommended) on a server, a NAS, a Raspberry Pi or a desktop computer, or as the binary on Linux, on amd64 or arm64. On macOS and Windows, use Docker.

Whatever the method, Fret needs two folders:

Folder Holds Docker Binary (default)
Data The database fret.db and the encryption key secret.key /data ./data
Warehouse Your downloads /downloads ./downloads

and listens on two ports:

Port Used by
8080 The web interface and the API
9666 Collection (Click’n’Load), optional

Create a compose.yaml file:

services:
fret:
image: ghcr.io/sokteam/fret:latest
container_name: fret
restart: unless-stopped
ports:
- "8080:8080" # web interface and API
- "9666:9666" # Click'n'Load collection
volumes:
- fret-data:/data
- fret-downloads:/downloads
environment:
TZ: Europe/Paris # time zone of the dock hours
volumes:
fret-data:
fret-downloads:

Then start it:

Terminal window
docker compose up -d

Open http://localhost:8080 (or the address of your server) and go on with the first run.

With the file above, downloads go into a Docker volume. To find them in a folder of your server instead, mount that folder on /downloads.

The image runs without root privileges, as user 65532, and has no shell to change users at startup (there is no PUID/PGID). Run the container as the user that owns the folder:

services:
fret:
# …
user: "1000:1000" # the owner of /srv/downloads (see `id -u` and `id -g`)
volumes:
- fret-data:/data
- /srv/downloads:/downloads
Tag Content
latest The latest stable release
1.0 The latest 1.0.x release
1.0.0 Exactly this release

The image is published for linux/amd64 and linux/arm64.

The same thing without Compose:

Terminal window
docker run -d --name fret --restart unless-stopped \
-p 8080:8080 -p 9666:9666 \
-v fret-data:/data -v fret-downloads:/downloads \
-e TZ=Europe/Paris \
ghcr.io/sokteam/fret:latest

Download the archive for your processor from the releases: fret_<version>_linux_amd64.tar.gz (Intel or AMD) or fret_<version>_linux_arm64.tar.gz (Raspberry Pi, ARM servers). The archive holds the fret program, the license, the changelog and an example compose.yaml. checksums.txt lists the SHA-256 of every archive.

Terminal window
tar -xzf fret_1.0.0_linux_amd64.tar.gz
./fret serve -data-dir /var/lib/fret -download-dir /srv/downloads

Fret creates both folders if they do not exist. Every option of fret serve is in Configuration.

Create a dedicated user, install the binary, then add a unit:

Terminal window
sudo useradd --system --home-dir /var/lib/fret --create-home fret
sudo install -m 755 fret /usr/local/bin/fret
/etc/systemd/system/fret.service
[Unit]
Description=Fret download manager
After=network-online.target
Wants=network-online.target
[Service]
User=fret
Environment=TZ=Europe/Paris
ExecStart=/usr/local/bin/fret serve -data-dir /var/lib/fret -download-dir /srv/downloads
Restart=on-failure
[Install]
WantedBy=multi-user.target
Terminal window
sudo systemctl daemon-reload
sudo systemctl enable --now fret
journalctl -u fret -f # the logs

The fret user must be able to write into /srv/downloads.

On the first visit, Fret asks you to choose a password (at least 8 characters). It protects the interface and the API; it will be asked on every new device.

The dock is then empty and ready. Continue with your first shipment.

With Docker Compose:

Terminal window
docker compose pull && docker compose up -d

With the binary, replace the file and restart Fret. The database is migrated automatically at startup, and transfers in progress resume where they were. See Upgrading.

Built with Kiln