running jellyfin in docker

What is jellyfin?

Jellyfin is a home run mediacenter to playback your local media files (video, music). It’s like your own private netflix, where you decide what comes, goes and stays. You can access it through your browser, but there are also many many clients available. You can run it on your computer, or nas. You could even run it on a raspberry pi. It only takes a lot of processing power when trickplay is running, creating thumbnail pictures to display in the timeline when rewinding or going fast forward. Apart from that, it doesn’t really use much, unless you’ve enabled transcoding (for the output to meet the connected client’s capabilities).

The docker-compose.yml file:

services:
  jellyfin:
    image: jellyfin/jellyfin
    container_name: jellyfin
    # Optional - specify the uid and gid you would like Jellyfin to use instead of root
    #user: uid:gid
    ports:
      - 8096:8096/tcp
      - 7359:7359/udp
    volumes:
      - ./jellyfin/config:/config # Saves config in subdirectory of the directory where docker-compose.yml is located
      - ./cache:/cache # Saves cache in subdirectory of the directory where docker-compose.yml is located
      - /opt/Movies:/Movies # example directory for movies
      - /opt/Television:Television # example directory for tv episodes
      # Optional - extra fonts to be used ddduring transcoding with subtitle burn-in
      #- type: bind
      # source: /path/to/fonts
      # target: /usr/local/share/fonts/custom
      # read_only: true
    restart: 'unless-stopped'
    # Optional - alternative address used for autodiscovery
    environment:
    - JELLYFIN_PublishedServerUrl=https://<your selected servername here>
    # Optional - may be necessary for docker healthcheck to pass if running in host network mode
    extra_hosts:
      - 'host.docker.internal:host-gateway'

Just make sure you have enough disk space. The docker image for jellyfin is nearly 2,5G in size.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

sixteen + five =