Self-hosted video streaming with Jellyfin and Tailscale
jellyfintailscaledockervaapitranscodingmedia-server
To watch personal videos and photos from anywhere without paying for big cloud storage, run a media server on a machine at home that already has the disk space, and reach it over a private mesh VPN instead of exposing it publicly. This is the plan worked out in July 2026 for a library expected to grow from ~100 GB to multiple terabytes.
Choosing the pieces
- Jellyfin (free, open source) for a movie-library style experience, with clients for phones, TVs and browsers. Immich is the alternative if the main need is a photo library (Google Photos style); the two can coexist.
- Host at home, not on a VPS. A 1 GB Linode Nanode (1 vCPU, 25 GB disk, ~14 GB free) can neither hold the media nor transcode it; upgrading a VPS or putting media in object storage costs money every month. A laptop or desktop with 1.5 TB free and a modern GPU/APU costs nothing extra.
- Tailscale (free personal tailnet, sign in with Google) gives each device a private 100.x address and a MagicDNS name, so nothing is open to the internet. Install the Tailscale app on every client device.
- Rejected for streaming: Tailscale Funnel (traffic is relayed and bandwidth-limited) and Cloudflare Tunnel (serving video through it is a terms-of-service gray area and performance suffers).
- Later option for clientless public access: nginx on the VPS reverse-proxying to the home machine over the tailnet.
Docker Compose setup
services:
jellyfin:
image: jellyfin/jellyfin:latest
container_name: jellyfin
user: "1000:1000"
group_add: ["992"] # host 'render' group gid, for the GPU device
devices: ["/dev/dri/renderD128:/dev/dri/renderD128"]
ports: ["8096:8096"]
volumes:
- ./config:/config
- ./cache:/cache
- ~/Videos:/media/videos:ro
- ~/Pictures:/media/photos:ro
restart: unless-stopped
- Look up the host's
rendergid withgetent group render(992 on VictusPop;videowas 44). Without it the container cannot open the render node. - Mount media read-only. Pre-create
config/andcache/as the user so they are not root-owned. - After
usermod -aG docker $USER, log out and back in beforedockerworks without sudo. - Install script pattern:
get.docker.com, enable the docker service, add the user to the group,docker compose up -d, Tailscale's install script, thensudo tailscale up, which prints an auth URL to open.
Hardware transcoding on a hybrid-GPU laptop
Pick the GPU whose video engine actually works under the current drivers:
- With NVIDIA on the open nouveau driver there is no NVENC/NVDEC and no nvidia-smi;
NVENC in containers also needs the proprietary driver plus nvidia-container-toolkit
(from NVIDIA's apt repo, not Pop!_OS's).
- The AMD APU (Radeon 780M, VCN engine) does VAAPI out of the box with in-kernel
amdgpu plus Mesa. On VictusPop it is /dev/dri/renderD128 (renderD129 is the NVIDIA
card). Check which node is which with ls -l /dev/dri/by-path/.
- In Jellyfin: Dashboard, Playback, Transcoding, choose VAAPI and device
/dev/dri/renderD128.
The NVIDIA proprietary driver was installed later (August 2026), which makes NVENC an option, but the AMD VAAPI path needs no extra toolkit. See NVIDIA hybrid graphics on a Pop!_OS laptop (system76-power modes, PRIME).
Making a laptop behave like a server
Laptops suspend on lid close and on idle by default, and remote streaming dies the moment
they do. Disable both while on AC (logind HandleLidSwitchExternalPower=ignore and the
desktop's power settings) before relying on it.