Getting started
Prerequisites
Before you start, get the hardware and install Docker:
- A TVHeadend-compatible tuner. Hardware requirements covers the choice.
- A computer that stays on, such as a NAS (a small storage box with hard drives) or a mini PC. The computer gives minimum and recommended specs.
- Docker with Compose v2 (the
docker composecommand) on that computer. For a network tuner such as an HDHomeRun, run Docker on Linux (a NAS or mini PC). As Docker Desktop and OrbStack on a Mac cannot find a network tuner on their own, enter the tuner's address in the Channels step of setup instead (Missing tuner). Freetvarr is untested on Windows; Windows describes a theoretical route through WSL (Windows Subsystem for Linux).
Freetvarr's Docker Compose file, which the install downloads, runs Freetvarr and TVHeadend (the free recording software that drives your tuner and records). Freetvarr sets TVHeadend up and controls it for you. A short-lived init container makes the config and data folders and then exits; that is normal. If TVHeadend already runs elsewhere, see An existing TVHeadend. Plex is optional. With no media server yet, the Docker Compose file can run Plex too: get a Plex claim code before you install (No Plex yet?). If Plex already runs, setup connects to it.
1. Install
In a terminal, run this command in the folder where you want a freetvarr folder to appear:
curl -fsSL https://raw.githubusercontent.com/furey/freetvarr/main/install.sh | shThe script creates the freetvarr folder, downloads its Docker Compose file, writes its .env (the settings file that Docker Compose reads), and asks for confirmation regarding project file ownership. Press Enter to accept the defaults (most people do). The first start downloads the Docker images, which takes a few minutes. The script then starts the Docker containers and outputs the URL of setup. Open that URL in a browser and proceed to step 2.
Install script options
After a banner with the Freetvarr name and author credit, the script outputs the .env it wrote and asks you to confirm who owns the project files:
[install] wrote .env:
PUID=501
PGID=20
# TZ=Australia/Sydney
Files will be owned by this PUID and PGID. Start now? [Y/n/e = edit .env first]PUID and PGID are the user and group that own the files Freetvarr writes, such as your recordings. Your numbers will differ from the example. Press Enter (or Y) to accept and start the Docker containers. This is right for most people.
Press e if the files must belong to a different user. On a NAS, for example, use the PUID and PGID of the user that owns your media share. The script opens its .env in a text editor (vi, unless you set EDITOR). In vi, press i to type, then Esc, then :wq and Enter to save and close the file. The script then starts the Docker containers.
Press n to stop without starting anything. Edit the .env in the freetvarr folder, then run the script again. Esc cancels without starting anything.
Run the script again at any time. It keeps an existing .env and Docker Compose file, and it asks about file ownership until the Docker containers have started once. On a NAS, sign in over SSH first, and use sudo if your user cannot reach Docker.
The script is the quickest way, but you have two other ways to install: by hand or with a NAS container app. Both start the same services.
Install: by hand
Use this instead of the script if you prefer to run each command yourself in a terminal, or if you want to check the Docker Compose file first.
Create a folder and move into it:
shmkdir freetvarr && cd freetvarrDownload the Docker Compose file:
shcurl -fsSL https://raw.githubusercontent.com/furey/freetvarr/main/docker-compose.example.yml -o docker-compose.ymlOptional: write a
.envwithPUIDandPGIDset to your user and group (id -uandid -g), one per line, for example:iniPUID=1000 PGID=1000Start both Docker containers:
shdocker compose up -dThe first start downloads the Docker images, which takes a few minutes.
In a browser, open
http://<host-ip>:3733and proceed to step 2.
Install: NAS container app
Use this instead of the script if your NAS has no SSH access, or if you prefer to manage Freetvarr in the NAS container app.
- In the NAS file manager, create a folder such as
docker/freetvarr. - Create two subfolders in it:
config(settings) anddata(recordings and your media library). - Optional: save a
.envin the folder with your NAS user'sPUIDandPGID, one per line, for examplePUID=1026andPGID=100. - In the NAS container app, create a Compose project (some apps call it a stack) in the folder you made.
- Upload
docker-compose.example.yml, or paste its content. - Start the project. The NAS container app downloads the Docker images and starts the Docker containers.
- In a browser, open
http://<nas-ip>:3733and proceed to step 2.
NOTE
The author's NAS is a Synology. On Synology DSM the file manager is File Station, and the container app is Container Manager (Project → Create, then tick Start the project once it is created). The first DSM user is often PUID=1026 and PGID=100. Docker is at /usr/local/bin, which is on the PATH only in an SSH login shell.
2. Run setup
The first visit to http://<host-ip>:3733 in a browser opens setup. Setup fills in what it can find, and you check each value before it saves:
Start: confirm your time zone, then press Start setup. To see each component of the system first, press How it works; Start setup on its last step, or Skip, goes on to the TVHeadend step.
TVHeadend: check the TVHeadend address. If Freetvarr installed TVHeadend for you, choose an admin username and a password of at least
8characters. Press the eye button to check what you typed. Check the allowed networks (the address ranges the logins work from), then press Secure and connect. Freetvarr saves the logins in TVHeadend and connects to it. If you installed TVHeadend yourself, press Use my own TVHeadend login instead, enter the TVHeadend username and password you created for Freetvarr (TVHeadend step 8), and press Save and next.Channels: check the tuners and the transmitter your antenna points at, then press Find channels. The scan takes a few minutes, and Next is available when it finishes. If TVHeadend already has channels, press Next to keep them, or Scan again to add channels that are missing. A dialog asks you to confirm. The scan only adds channels; your favourites, live TV, and recordings stay as they are.
If setup finds no tuner, press Enter the tuner's address, enter the tuner's IP address (on Docker Desktop, OrbStack, or WSL, also enter This computer's address), and press Use this address.
In Australia, the scan also makes ABC, Seven, Nine, 10, and SBS your favourites (the HD channel of each where there is one), in that order, if you have no favourites yet. To change them, press Channels in the TV guide (Favourites).
Guide: check the TV guide region, then press Set up guide. For any channel left without TV guide listings, setup pre-selects its best guess. Check each one, or choose No guide; to change a pick, click it and type part of a channel name or number. Then press Save and next. A +1 channel, such as
10 HD +1, gets the listings of its main channel one hour later (+1 channels). Outside Australia and New Zealand, enter an XMLTV guide address (the web address of a TV guide file) if you have one (XMLTV guide), or press Skip.Folders: Freetvarr checks the recordings folder (where TVHeadend saves recordings) and the TV folder of your media library. If the checks pass, press Next. If a check fails, do what its message says, or press Change folders.
Plex: optional. Freetvarr looks for Plex and its access token. If Freetvarr connects to Plex, check the Plex library for TV episodes, movies, and one-off recordings (TV library, Movies library, and One-off library), press Create libraries if Plex has no library for your recordings yet, then press Next. Skip Plex leaves Plex out. To enter the Plex address and token yourself, press Connect Plex by hand (Plex).
The last step lists what setup saved (You’re set, or Nearly there when something is missing). When channels or the TV guide are missing, the list says so and links back to that step. RECORDINGS SAVE TO lists the folder for TV episodes, movies, and one-offs, with the Plex library for each when you chose one. With no movies folder, movies save to the one-off folder. The note under the list says how often Freetvarr imports new recordings, and says so when Import every recording is off. Press Start watching to finish and open Home (Open Freetvarr when something is still missing).
Press Finish later, confirm, and Settings opens. It keeps what you saved so far. To check or change any part later, open Settings → SYSTEM → Setup (Settings).
3. Record something
In Freetvarr, open the TV guide, press a programme, and press Record for one airing. Pick Every episode and press Record series for every episode. About a minute after a recording finishes, Freetvarr imports it into your library (it hardlinks or copies the file into the folders of your media library). Freetvarr also checks for finished recordings every 30 minutes (change it in Settings → SYSTEM → Schedule) (Series rules). Your recordings appear in Recordings. To check the whole setup, open Settings → SYSTEM → Health.
4. Save it as an app
On a tablet or phone, add Freetvarr to the Home Screen. Freetvarr then opens full screen from its own icon, like an app.
On an iPad or iPhone:
- Open
http://<host-ip>:3733in Safari. - Tap the Share button.
- Tap Add to Home Screen, then Add.
On Android, open the address in Chrome, tap the ⋮ menu, then tap Add to Home screen.
In the Home Screen app, pull down from the top of a page to refresh it (Pull to refresh).
Configure
Every value in Freetvarr's .env is optional. These are the defaults:
PUID=1000
PGID=1000
CONFIG_PATH=./config
DATA_PATH=./data
FREETVARR_PORT=3733Set PUID and PGID to your own user (id -u and id -g). After a change, restart the Docker containers with the new values. In a terminal in the freetvarr folder, run:
docker compose up -dConfiguration covers every variable, the folders under DATA_PATH, and the two recordings paths.
An existing TVHeadend
If TVHeadend already runs on another host or in another compose project:
Delete the
tvheadendservice from yourdocker-compose.yml.Remove
tvheadendfrom thedepends_onoffreetvarr.Mount the folder TVHeadend records into (a NAS share, for example) into the Freetvarr Docker container. Add a line like this to the
volumesof thefreetvarrservice:yaml- /path/to/tvheadend/recordings:/data/recordingsRun
docker compose up -d.In the TVHeadend step of setup, enter
http://<tvheadend-host>:9981and the TVHeadend username and password you created for Freetvarr (TVHeadend step 8).On the Folders step of setup, press Change folders.
Set Recordings folder, as Freetvarr sees it to the path of the folder inside the Freetvarr Docker container.
Set Recordings folder, as TVHeadend sees it to the path TVHeadend writes to, then press Test beside it to compare it with TVHeadend.
The Freetvarr host's address must fall inside the allowed networks of the TVHeadend user. See The two recordings paths.
On a NAS
- Sign in over SSH before you run the install script or
docker compose, so Docker is on thePATH. - Create the
configanddatafolders before the first start. Some NAS Docker builds refuse to mount a folder that does not exist. The install script creates them (with a container app, create them in the NAS file manager). - Set
PUIDandPGIDin the.envto your NAS user's values fromid. - Use a network tuner. Most NAS operating systems have no USB DVB drivers (Hardware requirements).
Updating
In a terminal in the freetvarr folder, download the new Docker images, then restart the Docker containers:
docker compose pull
docker compose up -dA Freetvarr browser tab left open during the update offers a card with Reload to load the new version.
To back up first, go back to an older version, or see what changes in each release, read Updating Freetvarr.
Where next
- Home and search: what to watch now, and how to find a show.
- Player: live TV and recordings, Start over, the Miniplayer, and Multiview.
- TV guide: schedule recordings from the browser.
- Series rules and folders: assign series folders and sync recordings into your library.
- Updating Freetvarr: update, back up, and go back to an older version.
- Configuration: the full
.envreference. - Sign-in: ask for a household password.
- Away from home: reach Freetvarr from your phone over Tailscale.
- Troubleshooting: if the TVHeadend connection, an import, or Plex does not work.