Streaming services keep getting more expensive and own less of the catalog. If you have a media library you actually own โ ripped DVDs, downloaded shows, family videos โ Jellyfin gives you Netflix-quality UX over your own files. Tailscale fixes the historical pain of self-hosted Plex/Jellyfin: random IPs, port forwarding, "is this exposed to the internet?" anxiety. Tailnet-only by default; everywhere with you.
https://jellyfin.tail-abc.ts.net from any tailnet deviceEvery client speaks the same Jellyfin API to jellyfin.tail-abc.ts.net. Tailscale Serve handles HTTPS + cert; the Docker sidecar tagged tag:media runs the actual server; ACLs keep it family-only.
Most home servers, Pi 5s, NUCs, and Apple Silicon Minis are fine.
Same pattern as the Core Docker sidecar project. Save as ~/jellyfin/docker-compose.yml:
services:
ts-jellyfin:
image: tailscale/tailscale:latest
hostname: jellyfin
environment:
- TS_AUTHKEY=${TS_AUTHKEY?required}
- TS_EXTRA_ARGS=--advertise-tags=tag:media
- TS_SERVE_CONFIG=/config/serve.json
- TS_STATE_DIR=/var/lib/tailscale
volumes:
- ts-state:/var/lib/tailscale
- ./serve-config.json:/config/serve.json
- /dev/net/tun:/dev/net/tun
cap_add: [net_admin, sys_module]
restart: unless-stopped
jellyfin:
image: jellyfin/jellyfin:latest
network_mode: service:ts-jellyfin
environment:
- JELLYFIN_PublishedServerUrl=https://jellyfin.tail-abc.ts.net
volumes:
- jellyfin-config:/config
- jellyfin-cache:/cache
- /path/to/media:/media:ro
restart: unless-stopped
devices:
- /dev/dri:/dev/dri # Intel/AMD iGPU for transcoding
volumes:
ts-state:
jellyfin-config:
jellyfin-cache:
And the serve config serve-config.json:
{
"TCP": { "443": { "HTTPS": true } },
"Web": {
"${TS_CERT_DOMAIN}:443": {
"Handlers": { "/": { "Proxy": "http://127.0.0.1:8096" } }
}
}
}
Generate a Tailscale auth key with tag:media. Then:
cd ~/jellyfin
export TS_AUTHKEY="tskey-auth-XXXXX"
docker compose up -d
docker compose logs -f ts-jellyfin # wait for "Success."
From your laptop's browser, visit https://jellyfin.tail-abc.ts.net. The Jellyfin setup wizard appears.
/mediaJellyfin scans, finds your files, fetches metadata. Wait for the scan to finish.
Tighten access so random tagged tailnet members can't reach Jellyfin:
{
"acls": [
{ "action": "accept", "src": ["group:family"], "dst": ["tag:media:*"] }
]
}
Direct play (no transcoding) works for most devices. For older clients or limited bandwidth, enable HW acceleration:
/dev/dri mount enables it. Configure: Dashboard โ Playback โ Transcoding โ "Intel QuickSync" or "AMD AMF".runtime: nvidia. Worth it if you have one.https://jellyfin.tail-abc.ts.net from any tailnet devicejellyfin as tag:mediaJELLYFIN_PublishedServerUrl to your full HTTPS tailnet URL.plexinc/pms-docker, port 32400 instead of 8096.deluan/navidrome:latest, port 4533.ghcr.io/advplyr/audiobookshelf:latest, port 80.