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 |
Docker Compose
Section titled “Docker Compose”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:
docker compose up -dOpen http://localhost:8080 (or the address of your server) and go on with the first run.
Delivering into a folder of the host
Section titled “Delivering into a folder of the host”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:/downloadsImage tags
Section titled “Image tags”| 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.
Docker
Section titled “Docker”The same thing without Compose:
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:latestBinary
Section titled “Binary”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.
tar -xzf fret_1.0.0_linux_amd64.tar.gz./fret serve -data-dir /var/lib/fret -download-dir /srv/downloadsFret creates both folders if they do not exist. Every option of fret serve is in
Configuration.
As a systemd service
Section titled “As a systemd service”Create a dedicated user, install the binary, then add a unit:
sudo useradd --system --home-dir /var/lib/fret --create-home fretsudo install -m 755 fret /usr/local/bin/fret[Unit]Description=Fret download managerAfter=network-online.targetWants=network-online.target
[Service]User=fretEnvironment=TZ=Europe/ParisExecStart=/usr/local/bin/fret serve -data-dir /var/lib/fret -download-dir /srv/downloadsRestart=on-failure
[Install]WantedBy=multi-user.targetsudo systemctl daemon-reloadsudo systemctl enable --now fretjournalctl -u fret -f # the logsThe fret user must be able to write into /srv/downloads.
First run
Section titled “First run”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.
Updating
Section titled “Updating”With Docker Compose:
docker compose pull && docker compose up -dWith 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.