Blog · Part 1, Foundations

Install Jellyfin with Docker Compose

Your first service. Twenty lines of Compose, one setup wizard, and a server you can open from any browser in the house.

Today Jellyfin goes on the server. By the end you’ll have it running, an admin account, and your first two libraries pointing at the folders from Day 4.

What you need

  • Docker and Compose installed (Day 5).
  • The folders from Day 4: /data/media/movies, /data/media/tv, and /opt/media-server.
  • Your user and group IDs (id shows them; this series uses 1000:1000).

Add Jellyfin to the Compose file

Make a folder for Jellyfin’s cache, which holds temporary transcodes and generated images. It can be large and doesn’t need backing up, so it sits apart from config:

mkdir -p /opt/media-server/cache/jellyfin

Open /opt/media-server/compose.yaml and paste:

services:
  jellyfin:
    image: jellyfin/jellyfin:latest
    container_name: jellyfin
    user: 1000:1000
    ports:
      - 8096:8096
      - 7359:7359/udp
    environment:
      - TZ=Europe/Paris
    volumes:
      - ./config/jellyfin:/config
      - ./cache/jellyfin:/cache
      - /data:/data
    restart: unless-stopped

What each part does:

  • jellyfin/jellyfin is the official image from the Jellyfin project.
  • user: 1000:1000 runs Jellyfin as your media user, so it can read and write the library.
  • Port 8096 is the web interface and the address every app connects to.
  • Port 7359/udp lets apps on your network discover the server automatically.
  • /data:/data hands over the whole media tree at the same path every other app will use.
  • TZ: change it to your own time zone.

Start it:

cd /opt/media-server
docker compose up -d
docker compose logs -f jellyfin

Wait for a line saying startup is complete, then press Ctrl+C to stop following the log. Jellyfin keeps running.

Find your server’s address

You need the server’s IP address on your home network:

hostname -I

The first address, something like 192.168.1.50, is the one. While you’re at it, give the server a fixed address in your router’s settings (often called “DHCP reservation” or “static lease”). Otherwise it may change after a power cut, and every device will lose it.

Open http://192.168.1.50:8096 from a browser on any computer in the house, using your own address.

The setup wizard

Jellyfin greets you with a short wizard.

1. Language. Pick the language for the interface.

2. Your admin account. Choose a username and a strong password. This account can change everything, so don’t reuse a password from elsewhere. You’ll create everyday accounts for yourself and others on Day 9.

3. Media libraries. Add two:

  • Click Add Media Library, choose Movies as the content type, name it “Films” (or whatever you like), click the + next to Folders and enter /data/media/movies.
  • Again for Shows, named “Series”, folder /data/media/tv.

Leave the other settings as they are for now. Day 8 goes through them properly.

4. Metadata language. Choose the language and country for titles, descriptions and ratings. This decides, for example, whether a film appears under its English or its original title.

5. Remote access. Leave Allow remote connections to this server checked. That doesn’t expose anything to the internet by itself; it just lets Jellyfin accept connections that don’t come from the same machine. Part 4 sets up access from outside safely.

Finish the wizard and sign in with the account you just made.

Look around

The left menu (the three lines at the top) has your libraries and, at the bottom, Dashboard: the admin area. You’ll spend a lot of time there over the next week. For now, note three places:

  • Dashboard → Libraries: the folders you just added.
  • Dashboard → Users: where accounts live.
  • Dashboard → Playback → Transcoding: where hardware acceleration gets switched on (Day 10).

If your library folders are empty, the home page will be too. That’s fine. Tomorrow is about putting files in them the right way.

Check it worked

  • docker compose ps shows jellyfin as running (and eventually “healthy”).
  • http://your-server-ip:8096 opens the sign-in page from another device on your network.
  • An app on your phone or TV finds the server on its own, or connects when you type the address.

If something’s wrong

The page doesn’t load. Check docker compose ps. If Jellyfin keeps restarting, docker compose logs jellyfin usually says why, most often a permission problem on ./config/jellyfin. Run sudo chown -R 1000:1000 /opt/media-server and try again.

Your phone can’t find the server automatically. Type the address by hand. Discovery doesn’t cross some routers or guest networks.

Port already in use. Something else on the server is using 8096. Change the left side of the mapping (8097:8096) and use the new port in the address.

A word on versions

At the time of writing, Jellyfin’s current release line is 10.11. It added a built-in backup and restore feature and moved to a new database engine, so the first start after upgrading from an older version can take a while. Day 25 covers updating calmly.

Tomorrow: naming your films and series so Jellyfin recognizes every single one.

Use these tools with media you own or are authorized to use, and with public-domain works. Medusa does not host, provide, or stream any media of its own.