1. Installation in Docker VM
Now, once you have created the Arr stack you want a way to view all your media. This is where finally Jellyfin comes in! You baasically did all the plumbing and you can now finally start enjoying the media.
compose.yml
services:
jellyfin:
image: jellyfin/jellyfin
container_name: jellyfin
# Optional - specify the uid and gid you would like Jellyfin to use instead of root
user: 1000:1000
ports:
- 1021:8096/tcp
- 1022:7359/udp
volumes:
- ./config:/config
- ./cache:/cache
- /mnt/jellyfin:/data
# Optional - extra fonts to be used during transcoding with subtitle burn-in
- ./fonts:/usr/local/share/fonts/custom
restart: 'unless-stopped'
# Optional - alternative address used for autodiscovery
environment:
- JELLYFIN_PublishedServerUrl=https://pinx.rfeyn.org
- PUID=1000
- GPID=1000
# Optional - may be necessary for docker healthcheck to pass if running in host network mode
extra_hosts:
- 'host.docker.internal:host-gateway'