Streaming services keep raising prices and removing titles, and your own music, family videos, and legally owned movies are scattered across drives and folders. Jellyfin pulls them together into a single streaming library you can open on a phone, TV, or browser. It’s free, open source, and has no subscription or tracking account. A small mini PC is plenty of hardware for it.
This guide shows you how to set up Jellyfin on a mini PC with Docker Compose, from folder layout to your first library. It uses only your own media. If you haven’t installed Docker yet, our Docker Compose tutorial for beginners covers it, and the same guide explains every line of the Compose file you’re about to use.
What you need
- A mini PC running Linux with Docker and the Compose plugin. If you’re starting from scratch, see our guide to installing Ubuntu Server on a mini PC.
- Your media files, such as movies, TV shows, or music, on the mini PC or on a drive attached to it.
- Another device on the same network to open the web page and play videos.
How much hardware does Jellyfin need?
Jellyfin is light when it simply passes a file to your device, which is called direct play. It works much harder when it has to convert a video on the fly, which is called transcoding. A low-power four-core mini PC handles direct play for several devices, and a recent Intel chip with built-in video acceleration makes transcoding much easier. If you’re still choosing a machine, our budget mini PC roundup notes which models suit media streaming.
Step 1: Plan your folders
Keep Jellyfin’s settings separate from your media. This guide uses these locations:
/srv/docker/jellyfin/config (Jellyfin's database and settings)
/srv/docker/jellyfin/cache (temporary files)
/srv/media/movies
/srv/media/shows
/srv/media/musicCreate them and give your user ownership:
sudo mkdir -p /srv/docker/jellyfin/config /srv/docker/jellyfin/cache
sudo mkdir -p /srv/media/movies /srv/media/shows /srv/media/music
sudo chown -R $USER:$USER /srv/docker /srv/media
cd /srv/docker/jellyfinIf your media lives on a second drive, mount that drive first and use its mount point in place of /srv/media.
Name your files so Jellyfin can recognize them
Jellyfin matches your files to online information by their names, so tidy names mean correct posters and descriptions. Jellyfin’s documentation recommends putting each movie in its own folder, and TV shows in a show folder with season folders inside:
movies/Movie Name (2010)/Movie Name (2010).mkv
shows/Show Name (2015)/Season 01/Show Name S01E01.mkvCheck the naming pages on jellyfin.org if your library has odd cases.
Step 2: Write the Compose file
Create compose.yaml in /srv/docker/jellyfin:
nano compose.yamlThis follows the structure of the example in the official Jellyfin container documentation:
services:
jellyfin:
image: jellyfin/jellyfin
container_name: jellyfin
ports:
- "8096:8096/tcp"
- "7359:7359/udp"
volumes:
- ./config:/config
- ./cache:/cache
- /srv/media:/media:ro
restart: unless-stoppedWhat each part does
- Port 8096 is the web interface. Port 7359 (UDP) is used for automatic discovery of the server on your network.
- config and cache are folders on your mini PC that hold Jellyfin’s data, so it survives updates and container rebuilds.
- /srv/media:/media:ro shares your media into the container. The
:romeans read-only, so Jellyfin can’t change or delete your files. Inside Jellyfin, your folders will appear under/media, such as/media/movies.
The official page notes that you can also run the container as a specific user by adding a user: line. That’s optional, and by default the container runs as root. To use your own account, run id to find your numbers and add a line such as user: "1000:1000" to the file. Your config and cache folders must then be writable by that user, which is why Step 1 gave them to your account.
The official documentation also says it provides no support for running Jellyfin in containers on platforms other than Linux, so stay on Linux for this setup.
Step 3: Start Jellyfin
docker compose up -d
docker compose logs -fWait for the logs to settle, then press Ctrl+C. Open a browser on another device and go to http://YOUR-SERVER-IP:8096, using your mini PC’s real address. If you’re not sure how to find it, our Ubuntu Server install guide shows the command.
Step 4: Run the setup wizard
- Choose your language and create an admin account with a strong password.
- Add a media library. Pick the content type, such as Movies, then choose the folder, for example
/media/movies. Repeat for shows and music. - Pick your preferred metadata language and country.
- Finish the wizard and let the first library scan complete. It can take a while if you have a lot of files.
Posters and descriptions fill in as the scan works through your files.
Step 5: Watch on your devices
You can use Jellyfin in a web browser straight away. Jellyfin also offers apps for many phones, tablets, and TV platforms, and you can find the current list on jellyfin.org. Open the app, enter your server address, and log in. For the smoothest playback, use a wired connection for the TV or streaming box, and choose apps that can play your files directly without converting them.
Optional: hardware transcoding
If your mini PC has an Intel processor with built-in graphics, you can let it help with video conversion, which uses far less power than doing the work on the main processor. Jellyfin’s hardware acceleration documentation explains the supported options for each vendor. In Docker, the usual approach is to pass the graphics device into the container by adding this to the Jellyfin service:
devices:
- /dev/dri:/dev/driThen restart the container and turn on hardware acceleration in the Jellyfin dashboard’s playback and transcoding settings. Depending on your system, you might also need to give the container access to the right group, so check the official hardware acceleration page for your hardware. Support differs between chips, and I haven’t tested this on every model, so treat it as a starting point and test with a video that needs converting.
Remote access: keep it private
It’s tempting to forward port 8096 on your router so you can watch away from home, but that exposes your server to the whole internet. A safer option is a private network. Our guide to Tailscale for homelab remote access shows how to reach Jellyfin from your phone without opening any ports.
Back up and update
Your media files are your own originals, but Jellyfin’s database holds your users, watch history, and library settings. That’s the config folder. Include /srv/docker/jellyfin in your backups, as described in our homelab backup strategy for beginners. Media libraries are often large, so plan a separate backup for anything you can’t replace.
To update Jellyfin:
docker compose pull
docker compose up -dBack up the config folder before a major update.
Troubleshooting common problems
The web page won’t load
Run docker compose ps to check that the container is running, then docker compose logs to read any errors. Double-check the IP address and that you used port 8096. If another app already uses port 8096, change the left-hand number in the ports line.
My library is empty
Remember that Jellyfin sees the container’s paths, not your host paths. Add folders such as /media/movies, not /srv/media/movies. Also check that files are in the folder and that the file names follow the pattern above.
Permission denied errors
The user running Jellyfin must be able to read your media and write to the config and cache folders. Check ownership with ls -l and fix it with chown.
Video stutters or buffers
The video may be getting converted on a processor that can’t keep up. Try a different app that can play the file directly, check your Wi-Fi signal, or set up hardware transcoding.
Wrong posters or titles
Rename the files and folders to the pattern above, then refresh the metadata for that item.
Frequently asked questions
Is Jellyfin free?
Yes. Jellyfin is free and open source, with no subscription fee for the server or the official apps.
Is Jellyfin better than Plex?
They suit different people. Jellyfin is fully free and keeps everything on your own server, while Plex has a more polished experience but puts some features behind a paid plan. Try Jellyfin first, since it costs nothing but time.
Can a mini PC run Jellyfin?
Yes. Modern low-power mini PCs handle direct play easily, and models with Intel graphics can also help with transcoding.
Does Jellyfin work with Proxmox?
Yes. A common setup is a small Linux virtual machine with Docker inside it, and you follow the same steps as above inside that machine.
Where do I get movies and shows?
Use media you own or have the right to use, such as your own recordings, family videos, music you’ve bought, and discs you’ve ripped for personal use where the law in your country allows it. Check your local rules.
Wrapping up
To set up Jellyfin on a mini PC, plan your folders, write a short Compose file, start the container, and add your libraries in the setup wizard. Keep your media read-only, back up the config folder, and use a private network rather than port forwarding when you want to watch away from home. Once it’s running, you have your own streaming service with no monthly bill.