Setup guide

Get PrimeTime TV running.

Run PrimeTime in Docker, connect your Jellyfin library, and start building channels. Initial setup takes about 10 minutes, plus time to scan your library.

What you’ll need

  • A Jellyfin server with at least one movie or TV library.
  • An always-on computer such as your Jellyfin host, a NAS, a home server, a Mac or PC, or a Raspberry Pi 4 or 5.
  • Docker with Compose. Docker Desktop, OrbStack, and Docker Engine with the Compose plugin all work. You can also deploy a Compose stack in Portainer or Dockge.

PrimeTime supports amd64 and arm64, including Apple Silicon. Jellyfin handles video conversion, so PrimeTime needs little CPU and no graphics card. Video passes through PrimeTime to your devices, so a wired connection helps.

1. Install PrimeTime

On the computer that will run PrimeTime, create a folder, download the Compose file and settings template, and start the container.

mkdir primetime && cd primetime &&
  curl -fsSLO https://raw.githubusercontent.com/pusta/primetime_tv/main/docker-compose.yml &&
  curl -fsSL https://raw.githubusercontent.com/pusta/primetime_tv/main/.env.example -o .env &&
  docker compose up -d

PrimeTime listens on port 8080 by default. Use the same folder for later docker compose commands.

Install with a single Docker command
docker run -d --name primetime --restart unless-stopped \
  -p 8080:8080 \
  -v primetime-data:/data \
  -e TZ=America/New_York \
  --add-host host.docker.internal:host-gateway \
  ghcr.io/pusta/primetime_tv:latest
Add PrimeTime to your existing Jellyfin Compose stack

Add the primetime service and named volume to the corresponding sections of your existing Compose file. If your Jellyfin service uses a custom network, attach PrimeTime to that network as well.

services:
  primetime:
    image: ghcr.io/pusta/primetime_tv:latest
    container_name: primetime
    restart: unless-stopped
    ports:
      - "8080:8080"
    environment:
      TZ: America/New_York
    volumes:
      - primetime-data:/data

volumes:
  primetime-data:

Run docker compose up -d primetime or redeploy the stack in Portainer or Dockge. If the Jellyfin service is named jellyfin, use http://jellyfin:8096 during setup.

2. Find your setup code

PrimeTime logs a one-time setup code each time it starts until you create the admin account.

docker compose logs primetime

Look for No admin account yet and copy the code on that line. If you used docker run, view the log with docker logs primetime.

3. Connect Jellyfin

Open PrimeTime at the address of the computer running it, followed by port 8080, for example http://192.168.1.20:8080.

  1. Create the admin account. Enter the setup code and choose a username and password for PrimeTime.
  2. Connect Jellyfin. Enter the address from the table below and choose how to sign in.
    • API key (recommended). In Jellyfin, open Dashboard → API Keys, create a key named “PrimeTime,” and paste it in.
    • Username and password. PrimeTime signs in once and stores the access token Jellyfin returns.
    Choose Test connection, then Save and continue.
  3. Choose your libraries. Select the libraries to use and choose Confirm and scan.
  4. Wait for the first scan. PrimeTime opens the Guide when it finishes. From there you can add channels and start watching.

Which Jellyfin address should I use?

From inside the PrimeTime container, localhost points to PrimeTime’s container.

Where Jellyfin runsAddress to enter
On the same computer, outside Dockerhttp://host.docker.internal:8096
In the same Compose stackhttp://jellyfin:8096, using the service name
On another computer on your networkhttp://192.168.x.x:8096 or its hostname

If Jellyfin uses a base path such as /jellyfin, add it to the end of the address.

4. Configure settings (optional)

If you used the downloaded Compose file, edit .env in your PrimeTime folder. If you added PrimeTime to an existing stack, change the service’s port or environment settings in that stack. Apply changes with docker compose up -d or redeploy the stack.

SettingWhat it controls
TZTime zone for server logs, such as America/New_York. The guide uses each viewer’s local time.
PRIMETIME_HTTP_PORTHost port for the web app and API. Defaults to 8080. Try 8090 if the default is taken.
PRIMETIME_PUBLIC_URLAddress for app sign-in QR codes, such as http://192.168.1.20:8080. An https:// URL requires HTTPS for sign-in.
Additional settings
SettingDefault and behavior
PRIMETIME_IMAGE_TAGlatest. Selects the release or development build.
PRIMETIME_BIND_ADDRESSEmpty, which listens on all interfaces. Use 127.0.0.1 for a reverse proxy on the same computer.
PRIMETIME_LOG_LEVELInformation. Also accepts Trace, Debug, Warning, and Error.
PRIMETIME_TRUSTED_PROXIESEmpty. Set it to the address PrimeTime sees for your reverse proxy.

TZ defaults to UTC, and PRIMETIME_PUBLIC_URL is empty by default.

Link an Apple TV, iPhone, or iPad

For app sign-in, first set PRIMETIME_PUBLIC_URL to an address your phone can reach.

  1. Open the PrimeTime app. It shows a QR code and a short code.
  2. Scan the QR code with your phone and sign in to PrimeTime.
  3. Approve the device.

Manage linked devices under Settings → Devices. Linked apps can watch channels. Admin settings are managed in the browser.

Update PrimeTime

From your PrimeTime folder, pull the image and restart the service. Your channels, schedules, and settings are stored in a Docker volume.

docker compose pull primetime
docker compose up -d primetime

PrimeTime updates its database when a new version starts. Make a backup before major upgrades so you have a copy from before the migration.

Choose a version

Set PRIMETIME_IMAGE_TAG in .env, or change the image tag in your custom stack.

TagWhat you get
latestNewest release (default)
1Newest 1.x release
1.4Newest patch release in the 1.4 series
1.4.0One exact release
edgeNewest development build, which may be unstable

Back up and restore

PrimeTime stores its database and credential encryption keys in one Docker volume. These commands assume the Compose service and container are named primetime and run from the directory where you want to store the archive.

Make a backup

docker compose stop primetime
docker run --rm --volumes-from primetime:ro -v "$PWD":/backup alpine \
  tar czf /backup/primetime-data.tgz -C /data .
docker compose start primetime

Keep the archive private. It contains the keys that protect your saved Jellyfin credentials.

Restore a backup

Restoring replaces all current PrimeTime data. Save a separate copy of the current data first and use an archive you created and trust.

docker compose stop primetime
docker run --rm --volumes-from primetime -v "$PWD":/backup:ro alpine \
  sh -c 'tar tzf /backup/primetime-data.tgz >/dev/null &&
    find /data -mindepth 1 -maxdepth 1 -exec rm -rf {} + &&
    tar xzf /backup/primetime-data.tgz -C /data'

Once the restore succeeds, run docker compose start primetime.

Watch away from home

Use a VPN (recommended)

Connect back to your home network with a VPN such as Tailscale or WireGuard and use your home PrimeTime address.

Use a reverse proxy with HTTPS

Finish admin setup on your home network first and use a long, unique admin password. Point a hostname you control at your proxy, forward only the proxy’s HTTPS port, and keep port 8080 off the public internet. Configure the proxy to support long streaming responses without buffering.

Proxy on the PrimeTime host

Set these values in .env. Replace the example hostname and trusted proxy IP with your own. When Docker forwards the connection via its gateway, find that IP with the command below. The network name depends on your Compose project.

PRIMETIME_BIND_ADDRESS=127.0.0.1
PRIMETIME_PUBLIC_URL=https://primetime.example.com
PRIMETIME_TRUSTED_PROXIES=172.18.0.1
docker network inspect primetime_default --format '{{(index .IPAM.Config 0).Gateway}}'

Example Caddyfile for a proxy running directly on the same computer:

primetime.example.com {
    reverse_proxy 127.0.0.1:8080
    header Strict-Transport-Security "max-age=31536000"
}

Proxy in Docker or on another computer

For a containerized proxy, put it on a shared Docker network with PrimeTime. Remove PrimeTime’s published port, route the proxy to primetime:8080, and set PRIMETIME_TRUSTED_PROXIES to the proxy container’s fixed IP on that network. Keep the existing network connection PrimeTime uses to reach Jellyfin.

For a proxy on another computer, allow only that computer to reach PrimeTime’s published port using firewall rules that apply to Docker traffic. Route the proxy to the PrimeTime host’s LAN address and set PRIMETIME_TRUSTED_PROXIES to the proxy’s LAN IP.

From outside your network, confirm that HTTPS sign-in and playback work and that the direct port is unreachable. Under Settings → Streams, check that a stream shows the viewer’s address. Keep proxy logs private because playback URLs can authorize access while a stream lasts.

Troubleshooting

I can’t find the setup code

Check the container logs. If you haven’t created an admin account, run docker compose restart primetime and check the logs again.

PrimeTime can’t reach Jellyfin

Check the Jellyfin address table. Include any base path and confirm Jellyfin is reachable from the PrimeTime container. If you share a Compose stack, check that both services are on the same network.

Port 8080 is already in use

Set PRIMETIME_HTTP_PORT=8090 in .env and run docker compose up -d. In a custom stack, use 8090:8080 for the port mapping instead.

The QR code opens the wrong address

Set PRIMETIME_PUBLIC_URL to an address your phone can reach and run docker compose up -d.

I can’t sign in over HTTP

If your public URL starts with https://, use that HTTPS address to sign in.

How do I know PrimeTime is running?

On the PrimeTime host, run curl http://localhost:8080/health, using your configured port. A healthy server returns "status": "healthy".

Handy commands

docker compose logs -f primetime  # Watch the logs
docker compose ps                 # Check status and health
docker compose restart primetime  # Restart PrimeTime
docker compose stop primetime     # Stop PrimeTime and keep its data

For a dedicated PrimeTime stack, docker compose down removes the container and preserves its volume. Adding -v permanently removes the stack’s named volumes, including the PrimeTime data volume.