Skip to main content

JellyFin - Page is work in progress

JellyFin- Docker Setup

This guide looks like a really useful starting point to help write the rest of this JellyFin Docker Setup guide - https://cyberhost.uk/how-to-self-host-jellyfin/

Requirements

Steps to follow

  1.  Create a folder using the command - mkdir jellyfin 
  2. Use the command ls to verify the folder was created
  3. Move inside the jellyfin folder using the command cd jellyfin
  4.  Next check what what directory you are in using the command pwd
  5.  After running pwd you should see something like /home/[YOUR-USER-NAME]/jellyfin printed out. Remember this you will need to know it when updating the docker compose file.
  6. Create a docker-compose.yaml file by running the following command sudo nano docker-compose.yaml

Docker Compose Command

---
version: "2.1"
services:
  jellyfin:
    image: lscr.io/linuxserver/jellyfin:latest
    container_name: jellyfin
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Pacific/Auckland
    volumes:
      - /home/server/jellyfin/library:/config
      - /home/server/jellyfin/tvseries:/data/tvshows
      - /home/server/jellyfin/movies:/data/movies
    ports:
      - 8096:8096
      - 8920:8920 #optional
      - 7359:7359/udp #optional
      - 1900:1900/udp #optional
    restart: unless-stopped

Above is the code  required to deploy JellyFin

  1. Copy and paste the code above into the docker-compose.yaml file.

  2.  Next we want to edit the lines 12, 13, and 14  in the docker-compose.yaml file they currently read
           - /path/to/library:/config
          - /path/to/tvseries:/data/tvshows
          - /path/to/movies:/data/movies

  3.  Update lines 12, 13 and 14 so they read (refer to instruction 5 above if this doesn't make sense or you arent sure what to update with
           - /home/[YOUR-USER-NAME]/jellyfin:/config
           - /home/[YOUR-USER-NAME]/jellyfin:/data/tvshows
           - /home/[YOUR-USER-NAME]/jellyfin:/data/movies

  4. Once everything is copied and pasted in and edited press control+x (at the same time) on your keyboard to exit editing mode.

  5. Press Y then return on your keyboard to save everything

  6. Once you have the compose file setup, run 'sudo docker-compose up -d'

  7. Containers will be setup and created.

  8. In a browser visit server-local-ip-address:8096