Skip to content

Self HostingArticle

How to Run Jellyfin on a VPS

  • Updated
  • 14 min read
  • VPS Lane Engineering
Short answer

Start with 2 vCPU and 4 GB RAM if your devices direct play. Our 2 vCPU test ran one 1080p transcode, but not two or one 4K HEVC.

How we tested this

Run on Ubuntu 24.04.5 LTS, a KVM guest with 2 vCPU (Intel Xeon 2.10 GHz, shared with other workloads), 8 GB RAM and no GPU, with Docker 29.9.3, Compose 5.7.0, jellyfin/jellyfin 12.4 (server 12.4.0, jellyfin-ffmpeg 8.1.3) and caddy 2.11.9. Public certificates, ufw, the provider firewall, the SSH tunnel, the rsync upload and the block storage mount were not run, because the test machine is shared and has no public domain. Those steps follow the vendor documentation under Sources.

VPS for Jellyfin Sizing at a Glance

The right VPS for Jellyfin depends first on whether your devices direct play your files or need them transcoded.

Direct play sends the file as it is, so it mostly costs disk and bandwidth. Transcoding rebuilds the video on the fly, and on a VPS without a GPU that work lands on the CPU. A VPS suits a library that direct plays and is watched away from home. It suits frequent transcoding poorly, and a very large library can cost more in storage than a server at home.

Starting points for a Jellyfin VPS, to adjust after watching real use
How you will use itvCPURAMDiskWhat decides it
One to a few people, direct play only24 GBLibrary size plus 20 to 40 GBBandwidth and disk, not CPU
Direct play plus one 1080p transcode now and then2 to 44 GBAs above plus room for the transcode cacheOne software transcode ran above real time in our test, two did not
Several people who often transcode4 to 8 dedicated cores8 GBAs above, on SSD or NVMe for config and cacheCPU per stream, so count your peak streams
4K HEVC, HDR or AV1 files that need software transcodingNot a good fit for a plain VPSNot the limitLargeA working GPU, or clients that direct play

For a typical install the Jellyfin hardware guide suggests 8 GB of RAM, adding that a headless Linux server can often get by on 4 GB. Our idle test server used between about 180 and 310 MiB with a small library, measured with docker stats. For a direct play VPS, 4 GB is a practical start, and larger libraries or other services on the same server need more.

This guide applies to Ubuntu 24.04 LTS with Docker Engine and the Compose plugin already installed, a domain or subdomain you control, and root or sudo access. The steps should work on other recent Linux distributions with Docker, but they were run on Ubuntu 24.04 only. Stick to media that belongs to you or that you are licensed to share.

Direct Play or Transcoding on a Jellyfin VPS

Direct play versus transcoding is the difference between copying a file and rebuilding it, and it decides most of your VPS needs.

What Jellyfin does with a file and what it costs the server
ModeWhat happensWhen it happensServer cost
Direct playThe file is sent unchangedContainer, video, audio and subtitles all suit the clientDisk reads and bandwidth
Remux (direct stream)Codecs are kept and rewrapped in another containerOnly the container does not suit the clientVery low CPU
Audio transcodeOnly the audio track is convertedThe audio codec is not supported by the clientLow to moderate CPU
Video transcodeThe video is decoded and encoded againThe video codec is not supported, or the stream must be smallerHigh CPU without a GPU
Subtitle burn inSubtitles are drawn into the video while it is transcodedThe client cannot show that subtitle formatThe heaviest case

The Jellyfin codec guide sets the goal of direct playing everything. Direct play depends on the whole combination of container, video codec, audio codec, subtitles, bitrate and client. H.264 video with AAC audio has the widest client support, yet even an H.264 file can be transcoded if its audio or subtitles do not suit the client.

A bitrate limit also causes transcoding. Jellyfin has a remote client bitrate limit in its streaming settings and per user, and on our fresh 12.4 install both were 0, meaning no limit. A limit lowers bandwidth per stream, but every file above it is then transcoded.

Check Whether a Stream Is Transcoding

To check whether a stream is transcoding, start playback and open the playback info panel in the Jellyfin client or the dashboard.

It shows Direct Play, Direct Stream or Transcoding, with the codecs, container and the reason for any transcode. If video transcodes when you did not expect it, test again with subtitles off and original quality chosen before you buy a bigger VPS.

Measured Transcoding Speed on 2 vCPU

We measured transcoding speed with jellyfin-ffmpeg in the official container, using the software encoder Jellyfin uses without a GPU.

The sources were synthetic test patterns with added noise, generated on the same machine with the commands below: a 60 second 1080p H.264 file at about 8 Mbps and a 20 second 4K HEVC 10-bit file at about 20 Mbps. The bind mount maps /srv/bench on the host to /bench in the container, and the run shown below used both blocks exactly as printed.

bash
sudo mkdir -p /srv/bench
BENCH=/srv/bench
FFB="docker run --rm -v $BENCH:/bench --entrypoint /usr/lib/jellyfin-ffmpeg/ffmpeg jellyfin/jellyfin:12.4 -hide_banner -nostdin"
$FFB -y -f lavfi -i "testsrc2=size=1920x1080:rate=30,noise=alls=12:allf=t" -f lavfi -i "sine=frequency=440:sample_rate=48000" \
  -t 60 -c:v libx264 -preset medium -b:v 8M -maxrate 8M -bufsize 16M -pix_fmt yuv420p -c:a aac -b:a 192k /bench/test-1080p.mkv
$FFB -y -f lavfi -i "testsrc2=size=3840x2160:rate=24,noise=alls=12:allf=t" -f lavfi -i "sine=frequency=440:sample_rate=48000" \
  -t 20 -c:v libx265 -preset ultrafast -b:v 20M -pix_fmt yuv420p10le -tag:v hvc1 -c:a aac -b:a 192k /bench/test-4k.mkv

Each transcode job encoded to H.264 with the veryfast preset and AAC audio and wrote to the FFmpeg null output. That removes output disk writes, but source reads still use storage and may come from the page cache. Run the next block in the same shell, because it reuses $FFB.

bash
$FFB -version | head -n 1

echo "== one 1080p"
$FFB -i /bench/test-1080p.mkv -vf scale=-2:720 -c:v libx264 -preset veryfast -b:v 4M -maxrate 4M -bufsize 8M \
  -c:a aac -b:a 128k -f null - 2>&1 | tr '\r' '\n' | grep '^frame=' | tail -n 1

echo "== one 4K"
$FFB -i /bench/test-4k.mkv -vf scale=-2:1080,format=yuv420p -c:v libx264 -preset veryfast -b:v 8M -maxrate 8M -bufsize 16M \
  -c:a aac -b:a 128k -f null - 2>&1 | tr '\r' '\n' | grep '^frame=' | tail -n 1

echo "== two 1080p at once"
$FFB -i /bench/test-1080p.mkv -vf scale=-2:720 -c:v libx264 -preset veryfast -b:v 4M -maxrate 4M -bufsize 8M \
  -c:a aac -b:a 128k -f null - > /tmp/jf-1.log 2>&1 &
pid1=$!
$FFB -i /bench/test-1080p.mkv -vf scale=-2:720 -c:v libx264 -preset veryfast -b:v 4M -maxrate 4M -bufsize 8M \
  -c:a aac -b:a 128k -f null - > /tmp/jf-2.log 2>&1 &
pid2=$!
wait "$pid1"; wait "$pid2"
for f in /tmp/jf-1.log /tmp/jf-2.log; do tr '\r' '\n' < "$f" | grep '^frame=' | tail -n 1; done

echo "== remux"
$FFB -i /bench/test-1080p.mkv -c copy -f matroska -y /dev/null 2>&1 | tr '\r' '\n' | grep 'speed=' | tail -n 1

The output below is real, from the machine in the tested line. A speed of 1x is real time. Below 1x the player runs out of video and stalls.

Output
ffmpeg version 8.1.3-Jellyfin Copyright (c) 2000-2026 the FFmpeg developers
== one 1080p
frame= 1800 fps= 54 q=-1.0 Lsize=N/A time=00:00:59.93 bitrate=N/A speed= 1.8x elapsed=0:00:33.35
== one 4K
frame=  480 fps= 18 q=-1.0 Lsize=N/A time=00:00:19.91 bitrate=N/A speed=0.752x elapsed=0:00:26.48
== two 1080p at once
frame= 1800 fps= 27 q=-1.0 Lsize=N/A time=00:00:59.93 bitrate=N/A speed=0.899x elapsed=0:01:06.69
frame= 1800 fps= 27 q=-1.0 Lsize=N/A time=00:00:59.93 bitrate=N/A speed=0.913x elapsed=0:01:05.62
== remux
frame= 1800 fps=0.0 q=-1.0 Lsize=   60490KiB time=00:00:59.93 bitrate=8268.2kbits/s speed= 644x elapsed=0:00:00.09

Four earlier runs of the same jobs, two of them inside the running Jellyfin container while other work shared the host, gave 1.39x to 1.9x for one 1080p job, 0.84x to 0.97x each for two, 0.6x to 0.78x for 4K and 474x to 969x for the remux. CPU use per job was not recorded separately. These results describe these synthetic inputs on this machine, not every film. Motion, grain, frame rate, settings such as tone mapping or subtitles, and a different CPU all change the numbers.

What the measurements mean for a 2 vCPU VPS without a GPU
JobMeasured speedResult
One 1080p to 720p transcode1.39x to 1.9xPlays above real time, capacity varies with the host
Two 1080p to 720p transcodes0.84x to 0.97x eachBoth software transcodes fall below real time
One 4K HEVC 10-bit to 1080p transcode0.6x to 0.78xFalls below real time
Remux with codecs copied474x to 969xVery cheap, mostly disk reads

Storage Maths for a Jellyfin Library

Storage maths for a Jellyfin library starts from bitrate times running time, which tells you whether a disk or extra volume fits.

Divide megabits per second by 8 to get megabytes per second. Our 1080p test file averaged 8,256 kbit/s over 60 seconds and took 61,941,887 bytes on disk, which matches that rule. These figures use decimal units, where 1 GB is 1,000,000,000 bytes and 1 TB is 1,000 GB, while some tools show binary GiB and TiB that look about 7% smaller.

Disk space per hour of video at common average bitrates
Average bitratePer hourA 2 hour film100 films of 2 hours
4 Mbps1.8 GB3.6 GB360 GB
8 Mbps3.6 GB7.2 GB720 GB
15 Mbps6.75 GB13.5 GB1.35 TB
40 Mbps18 GB36 GB3.6 TB

Add space for three more things. The config folder holds the database, metadata and images, and grows with the library. The cache folder holds transcode segments while people watch. Docker images take room too, and the Jellyfin image alone was 2.49 GB on our test machine.

Jellyfin recommends an SSD for its own files, so keep config and cache on the fast system disk. Media can sit on a larger, slower second volume if it sustains the combined read rate of your busiest evening with headroom. SSD storage helps when several people read different files at once.

Bandwidth Maths for Remote Streaming

Bandwidth maths for remote streaming has two parts, the upload speed you need at peak and the data you move in a month.

Peak speed is the sum of the bitrates playing at once. Run three streams at 8 Mbps and the VPS has to push roughly 24 Mbps upstream without a break, with spare room on top for bitrate spikes, protocol overhead and anything else using the link. The Jellyfin hardware guide gives 20 Mbps of upload as a general figure for remote access. What you need depends on your own streams.

Monthly transfer is bitrate times viewing hours. At 8 Mbps that is 3.6 GB per hour, so two people watching two hours a day for 30 days move about 432 GB. Check whether your plan meters traffic and what happens when you pass the allowance.

Monthly traffic for two hours of viewing a day over 30 days
Bitrate per streamOne viewerTwo viewersFour viewers
4 Mbps108 GB216 GB432 GB
8 Mbps216 GB432 GB864 GB
15 Mbps405 GB810 GB1.62 TB
40 Mbps1.08 TB2.16 TB4.32 TB

The viewer side counts as well. A 40 Mbps file sent to someone on a slower connection will buffer, and lowering the quality in that client makes the server transcode. Re-encoding big files to a lower bitrate in advance moves that cost to a one time job.

Jellyfin VPS Cost Next to a Home Server

A Jellyfin VPS cost is the plan, the storage and the traffic, and a home server trades those for hardware and your own upload.

Work out your own monthly figure with this sum: plan price, plus any extra block storage for the library, plus expected traffic above the allowance times the overage rate. Use the storage and traffic tables above for the inputs. Dedicated cores and GPU plans cost more than shared vCPU, so price them only if your playback info shows you need them. Also check that your provider terms allow the media you plan to host.

VPS or home server for Jellyfin
FactorVPSHome server or NAS
Remote accessPublic address and fast upload includedDepends on your home upload and router
Bulk storageCosts more per TB as the library growsCheap large disks
TranscodingCPU only on most plansCan use an integrated or dedicated GPU
UpkeepNo hardware to runPower, noise and hardware failures are yours

A mix also works. You can keep the library at home and use a small VPS as the reverse proxy in front of it, so the VPS stores no media. The home server still needs enough upload, and the link between the VPS and home should run over a private tunnel such as WireGuard or Tailscale.

Install Jellyfin With Docker Compose

Install Jellyfin with Docker Compose as two containers, Jellyfin itself and Caddy in front of it for HTTPS.

Before you start, point an A record (and an AAAA record if the VPS has IPv6) for your subdomain at the server. This guide uses jellyfin.example.com as a placeholder name. Check that Docker and the Compose plugin are present, because the steps use docker compose, not the old standalone docker-compose tool. If they are missing, install Docker on Ubuntu first.

bash
docker --version
docker compose version
Output
Docker version 29.9.3, build 5457199
Docker Compose version v5.7.0

Prepare Folders and Permissions

Prepare folders for config, cache and media, with config and cache owned by the user the container runs as.

bash
sudo mkdir -p /opt/jellyfin/config /opt/jellyfin/cache /srv/media/movies /srv/media/shows
sudo chown -R 1000:1000 /opt/jellyfin/config /opt/jellyfin/cache
cd /opt/jellyfin

User and group 1000 is the first normal account on most Ubuntu systems. Use another ID if you prefer and keep it the same in the folders and the compose file. The media only needs to be readable, with execute permission on folders. Avoid changing ownership of a large existing library just for Jellyfin, and widen read access instead if needed.

Write the Compose File

The compose file follows the official Jellyfin example, with the web port bound to 127.0.0.1 so the internet cannot reach it directly.

yaml
services:
  jellyfin:
    image: jellyfin/jellyfin:12.4
    container_name: jellyfin
    user: 1000:1000
    ports:
      - 127.0.0.1:8096:8096/tcp
    volumes:
      - ./config:/config
      - ./cache:/cache
      - type: bind
        source: /srv/media
        target: /media
        read_only: true
    networks:
      - web
    restart: unless-stopped

  caddy:
    image: caddy:2.11.9
    container_name: caddy
    ports:
      - 80:80/tcp
      - 443:443/tcp
      - 443:443/udp
    volumes:
      - ./Caddyfile:/etc/caddy/Caddyfile:ro
      - caddy_data:/data
      - caddy_config:/config
    networks:
      web:
        ipv4_address: 172.30.10.10
    restart: unless-stopped

networks:
  web:
    ipam:
      config:
        - subnet: 172.30.10.0/24
          ip_range: 172.30.10.128/25
          gateway: 172.30.10.1

volumes:
  caddy_data:
  caddy_config:

Save it as /opt/jellyfin/compose.yaml. Both images are pinned, Jellyfin to 12.4 and Caddy to 2.11.9, so updates only happen when you change a tag. Port 7359/udp from the official example is left out, because it is for discovery on a local network.

The web network gives Caddy the fixed address 172.30.10.10, outside the range Docker hands out to other containers, so Jellyfin can trust it later. If that subnet is already used on your server, pick another private range and change both lines and the trusted proxy address together.

Add Caddy for HTTPS

Caddy adds HTTPS by itself once the domain points at the server and ports 80 and 443 are open, with nothing else in the file.

caddyfile
jellyfin.example.com {
	reverse_proxy jellyfin:8096
}

Save it as /opt/jellyfin/Caddyfile. The first time Caddy starts it fetches a TLS certificate by itself. UDP 443 is published for HTTP/3, which is optional, and clients fall back to TCP when UDP is blocked.

Start Jellyfin and Verify It

Start Jellyfin alone first with sudo docker compose up -d jellyfin, then verify it is healthy and can read the media.

bash
sudo docker compose ps
curl -s http://127.0.0.1:8096/health
sudo docker exec --user 1000:1000 jellyfin sh -c 'test -r /media/movies && test -x /media/movies && echo "Media directory is readable"'

This is the real result from our test stack after Caddy was also running. It used ports 18096 and 18943 so it could share the test machine, and Caddy used its internal certificate authority because the machine has no public domain. Everything else matched the files above.

Output
NAME       IMAGE                    STATUS                    PORTS
caddy      caddy:2.11.9             Up 30 seconds             80/tcp, 2019/tcp, 443/udp, 127.0.0.1:18943->443/tcp
jellyfin   jellyfin/jellyfin:12.4   Up 30 seconds (healthy)   127.0.0.1:18096->8096/tcp
Healthy
Media directory is readable

On the first start, /System/Info/Public returned this. StartupWizardCompleted:false means nobody has created the admin account yet, which is the next step.

Output
{"LocalAddress":"http://172.19.0.3:8096","ServerName":"58731397c6c0","Version":"12.4.0","ProductName":"Jellyfin Server","OperatingSystem":"","Id":"f7ae4aeb8511487fa926377ab57d772a","StartupWizardCompleted":false}

A healthy result does not prove the certificate is public or that outside clients can connect, so finish with the outside test in the next section.

Secure Jellyfin Behind the Reverse Proxy

Secure Jellyfin behind the reverse proxy in three moves, a private first run, only Caddy published and Caddy set as a trusted proxy.

Finish the Setup Wizard Privately

Finish the setup wizard privately, because until it is done the first visitor can create the admin account.

On our test server the wizard endpoints accepted a new admin user with no login, which is expected on a first run. Before you open the wizard, keep TCP 8096 closed in the provider firewall and keep the 127.0.0.1 binding. Reach the server through an SSH tunnel from your own machine instead, which leaves the tunnel as the single route in.

bash
ssh -L 8096:127.0.0.1:8096 root@203.0.113.10

Browse to http://127.0.0.1:8096 on your computer, create the admin account with a long unique password and add your libraries. Once that is done, bring Caddy up with sudo docker compose up -d. The address 203.0.113.10 is a documentation example, so use your server address.

Publish Only the Proxy Ports

Publish only the proxy ports, because Docker can route published ports past ufw before its rules apply.

The Docker documentation explains that traffic to a published container port is diverted before ufw sees it, so a clean ufw status does not prove a container is private. The compose file binds Jellyfin to 127.0.0.1 for that reason. Check the binding and confirm Jellyfin is not listening on a public IPv4 or IPv6 address.

bash
sudo docker port jellyfin
sudo ss -ltnH 'sport = :8096'

The expected result is 127.0.0.1:8096 only, with no 0.0.0.0:8096 or [::]:8096 listener. The ss filter matches the port on every address, so an IPv6 listener would show up as its own line. Our test stack used port 18096, so we ran the same check with sport = :18096 and got this.

Output
8096/tcp -> 127.0.0.1:18096
LISTEN 0      4096   127.0.0.1:18096 0.0.0.0:*

ufw still protects everything that is not a Docker published port, such as SSH. These commands allow SSH, HTTP, HTTPS and HTTP/3, then turn the firewall on. They were not run on the shared test machine. Keep your SSH session open until a second login works.

bash
sudo ufw allow OpenSSH
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw allow 443/udp
sudo ufw enable
sudo ufw status verbose

A firewall in your provider panel is separate from ufw and needs its own rules. Allow inbound TCP 22, TCP 80, TCP 443 and UDP 443 for HTTP/3, and do not allow TCP 8096 or 8920.

From a computer on another network, check both address families and the closed port. These were not run here, because the test machine has no public address. Each curl line should print Healthy, the -6 one only if you added an AAAA record, and the nc line should be refused or time out.

bash
curl -4 -s https://jellyfin.example.com/health
curl -6 -s https://jellyfin.example.com/health
nc -zv -w 5 203.0.113.10 8096

Without a domain, a VPN such as WireGuard or Tailscale between your devices and the VPS avoids a public web port. It limits who can connect but does not replace updates and strong passwords.

Set Known Proxies in Jellyfin

Set known proxies in Jellyfin to the fixed Caddy address, so logs show the real client and not the proxy.

Go to Networking in the dashboard, add 172.30.10.10 to the Known proxies list, then save and restart Jellyfin. Confirm the address Caddy really has first.

bash
sudo docker inspect caddy --format '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}'
Output
172.30.10.10

We tested this with a failed sign in sent through Caddy. Before the change, the log line named the Caddy container as the client. After it, Jellyfin logged the client as Caddy saw it. Our test request came from the server itself through the Docker port mapping, so that client was the network gateway, set to 172.30.10.1 in the compose file.

bash
sudo docker network inspect jellyfin_web --format '{{range .IPAM.Config}}{{.Gateway}}{{end}}'
Output
172.30.10.1
Authentication request for admin has been denied (IP: 172.30.10.1).

Compose names the network after the project folder, so it is jellyfin_web when the files sit in /opt/jellyfin. Our test folder had another name, so we ran the same command with that network name. A real visitor would appear with their own public address instead.

Trust only the proxy address, not the whole Docker network. A correct client address matters for logs and tools such as fail2ban, and does not block anything by itself.

Upload and Organize Media on the VPS

Upload and organize media on the VPS with rsync over SSH, in the folder layout Jellyfin expects for movies and shows.

Give your SSH user write access to the media folders first, because sudo mkdir made them owned by root. Jellyfin only reads them, through the world readable bits, so it keeps working.

bash
sudo chown -R $USER:$USER /srv/media
sudo chmod -R u=rwX,go=rX /srv/media

Then run rsync on your own computer, with your source path, user and server address in place of the examples. --partial --append-verify resumes an interrupted large file and checks the result, and --chmod keeps uploaded files readable for Jellyfin. These commands were not run here, because the test machine has no outside SSH access. SFTP clients such as FileZilla or WinSCP do the same job with a window.

bash
rsync -avP --partial --append-verify --chmod=D755,F644 "/path/to/Movies/" user@203.0.113.10:/srv/media/movies/

Name folders the way the Jellyfin naming guides describe: one folder per movie with the year, and shows split into season folders written as Season 01, not S01.

text
/srv/media/
├── movies/
│   └── Example Movie (2024)/
│       └── Example Movie (2024).mkv
└── shows/
    └── Example Show (2023)/
        └── Season 01/
            └── Example Show S01E01.mkv

After uploading, run a scan from the dashboard under Libraries, or wait for the scheduled scan. If a title is missing or matched wrongly, check its folder and file names first.

Mount Extra Block Storage for Media

Mount extra block storage at /srv/media when the library outgrows the system disk, and do it before you upload.

bash
lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINTS
sudo mkfs.ext4 -L media /dev/vdb
sudo blkid /dev/vdb
echo 'UUID=your-uuid-here /srv/media ext4 defaults,nofail 0 2' | sudo tee -a /etc/fstab
sudo mount -a
findmnt /srv/media

Replace your-uuid-here with the UUID that blkid prints. nofail lets the server boot if the volume is missing, and findmnt should then show the volume on /srv/media. These commands were not run on the shared test machine, and your provider may attach volumes under a different name.

What a VPS Cannot Do Well for Jellyfin

A VPS cannot do well what a GPU does for Jellyfin, which is fast video transcoding without loading the CPU.

Most VPS plans have no GPU. In our test container there was no /dev/dri device, and the fresh install had hardware acceleration set to none. The jellyfin-ffmpeg build lists methods such as VA-API, QSV, CUDA and AMF, but each needs real graphics hardware with the right drivers, codec support and device passthrough into the container. The Jellyfin hardware guide does not recommend running without a GPU when you expect to transcode.

Where a plain VPS struggles and what to do instead
Weak spotWhyWhat helps
4K HEVC, HDR or AV1 that needs software transcodingSoftware decode and encode is slow, 0.6x to 0.78x in our testClients that direct play the original, or a 1080p H.264 copy made in advance
HDR to SDR tone mappingVery heavy in software, the Jellyfin guide cites a Ryzen 9 5950X for real timeA GPU, or clients that show HDR
Burned in subtitlesForces a full video transcodeSRT or other text subtitles the client can show
Several transcodes at onceEach stream needs its own CPU time, two fell below real time on 2 vCPUMore dedicated cores, or fewer transcodes
Shared vCPU under loadSpeed changes with the host, as our repeat runs didDedicated cores for steady transcoding

A 4K file plays fine on a VPS when the client direct plays its codec, bit depth, audio and subtitles. For a library that direct plays, a lean Docker VPS is enough. For heavy transcoding, a server with a supported GPU, or files prepared in advance, does more than extra vCPU.

Back Up and Update Jellyfin Safely

Back up and update Jellyfin safely by stopping the container and copying the config folder before you change the image tag.

In the official Docker image the database and settings live under /config. The Jellyfin backup guide says to stop the server first so the database is not locked. From version 10.11 Jellyfin also ships its own backup feature, which works without taking the server offline.

bash
cd /opt/jellyfin
sudo docker compose stop jellyfin
sudo tar -czf /root/jellyfin-config-$(date +%F).tar.gz config
sudo docker compose start jellyfin

The archive stores config relative to /opt/jellyfin, so restore it from that folder. We restored our backup with these commands.

bash
cd /opt/jellyfin
sudo docker compose stop jellyfin
sudo mv config config.bak
sudo tar -xzf /root/jellyfin-config-2026-11-27.tar.gz
sudo chown -R 1000:1000 config cache
sudo docker compose start jellyfin
sudo docker compose ps jellyfin
sudo docker logs --tail 50 jellyfin

After the restore the container was healthy, the log ended with Startup complete, the server reported version 12.4.0 with the wizard already completed, and both test titles were still in the library. Copy the archive off the VPS too, because a backup on the same disk does not survive the loss of that disk.

This archive covers the Jellyfin settings and database, not the whole deployment. Keep copies of compose.yaml and Caddyfile as well, back up media separately, and keep at least one copy outside the VPS.

To update, read the release notes first, take a fresh backup and change jellyfin/jellyfin:12.4 to the new version. Then run sudo docker compose pull and sudo docker compose up -d. A new version can migrate the database on first start and Jellyfin has no downgrade path, so keep the backup until the new version has run well for a while.

Jellyfin VPS Troubleshooting

Jellyfin VPS troubleshooting starts with the playback info panel, which shows whether a stream direct plays or transcodes.

Common problems on a Jellyfin VPS
What you seeLikely causeFix
Playback stalls and CPU sits near 100%A software transcode the VPS cannot keep up withCheck playback info, then pick a lower quality or a client that direct plays
Video transcodes though codecs suit the clientA subtitle format that needs burn inTurn subtitles off to test, or use SRT or another text format
Container restarts or shows unhealthyConfig or cache not writable by user 1000Fix ownership of config and cache, then check docker logs jellyfin
Caddy cannot get a certificateDNS not pointing at the VPS, or ports 80 and 443 closedCheck the A and AAAA records and the provider firewall
502 error from CaddyJellyfin is down or the name in the Caddyfile is wrongRun docker compose ps and check the service name
Logs show one internal IP for everyoneKnown proxies not set or wrong addressEnter the Caddy address from docker inspect and restart
Library is empty after a scanMedia path or permissionsRun the readability check and confirm files sit under /media
Disk fills up while people watchTranscode segments in the cache folderGive the cache more room and keep transcodes down

Questions people ask

How much RAM does Jellyfin need on a VPS?

Our idle test used about 180 to 310 MiB. Jellyfin suggests 8 GB, or 4 GB for Linux without a GUI, and 4 GB suits a direct play VPS.

How many Jellyfin streams can a VPS handle?

Direct play streams are limited by upload bandwidth and disk. Software transcodes are limited by CPU, and 2 vCPU managed one 1080p transcode here.

Will Jellyfin work on a VPS with 1 vCPU?

It may suit direct play only, which needs little CPU, but we did not test 1 vCPU. Two 1080p transcodes already fell below real time on 2 vCPU.

Can a VPS transcode 4K for Jellyfin?

Not well without a GPU. Our 2 vCPU test reached 0.6x to 0.78x real time for 4K HEVC to 1080p, which is below real time and would make playback stall.

How much bandwidth does Jellyfin use?

About the bitrate of what plays. An 8 Mbps file uses 3.6 GB per hour, and peak upload is the sum of all streams at once.

Should I open port 8096 to the internet?

Better not. Jellyfin advises against forwarding its ports directly, so publish HTTPS through a reverse proxy and keep 8096 on 127.0.0.1.

Do I need a domain to run Jellyfin on a VPS?

No. You can reach it through an SSH tunnel or a VPN such as WireGuard, though public HTTPS with Caddy needs a domain name pointing at the server.

Is running Jellyfin on a VPS legal?

The software itself is legal and open source. Whether streaming a file is legal depends on your rights to it and local law, and provider terms also apply.

Sources

  1. Jellyfin documentation, Hardware selection
  2. Jellyfin documentation, Container installation
  3. Jellyfin documentation, Codec support
  4. Jellyfin documentation, Movies naming
  5. Jellyfin documentation, Networking
  6. Jellyfin documentation, Caddy reverse proxy
  7. Jellyfin documentation, Backup and restore
  8. Docker documentation, Packet filtering and firewalls
  9. Jellyfin documentation, Shows naming

Written and tested by VPS Lane EngineeringWe run every step on real servers before publishing and update the article when the software changes.