Jellyfin
Ínstall Jellyfin
echo ">=media-video/ffmpeg-4.4.3 vpx" > /etc/portage/package.use/jellyfin
emerge --ask www-apps/jellyfin
/opt/jellyfin/jellyfin \
--logdir /var/log/jellyfin \
--cachedir /var/cache/jellyfin \
--configdir /etc/jellyfin \
--datadir /var/lib/jellyfin
Docker Compose
mkdir -p /mnt/rar2fs/archive;
mkdir -p /mnt/rar2fs/incoming/;
rar2fs -o allow_other /mnt/usb/site/archive/ /mnt/rar2fs/archive/
rar2fs -o allow_other /mnt/usb/site/incoming /mnt/rar2fs/incoming
mkdir -p /mnt/usb/docker/jellyfin/{config,cache}
version: '3.5'
services:
jellyfin:
image: jellyfin/jellyfin
container_name: jellyfin
user: uid:gid
network_mode: 'host'
volumes:
- /mnt/usb/docker/jellyfin/config:/config
- /mnt/usb/docker/jellyfin/cache:/cache
- /mnt/rar2fs/archive/x2641080p:/x2641080p
- /mnt/rar2fs/archive/x264720p:/x264720p
- /mnt/rar2fs/archive/tv:/tv
- /mnt/rar2fs/archive/xxxsd:/xxxsd
- /mnt/rar2fs/archive/mvids:/mvids
- /mnt/rar2fs/archive/mbluray:/mbluray
- /mnt/rar2fs/archive/mp3:/mp3
- /mnt/rar2fs/incoming/mp3:/mp3
- /mnt/rar2fs/incoming/mbluray:/mbluray
- /mnt/rar2fs/incoming/x2641080p:/x2641080p
- /mnt/rar2fs/incoming/x264720p:/x264720p
- /mnt/rar2fs/incoming/tv:/tv
- /mnt/rar2fs/incoming/xxxsd:/xxxsd
- /mnt/rar2fs/incoming/mvids:/mvids
restart: 'unless-stopped'
# Optional - alternative address used for autodiscovery
environment:
- JELLYFIN_PublishedServerUrl=http://192.168.1.100
extra_hosts:
- "host.docker.internal:host-gateway"
Visit
Docker stop jellyfin
docker jellyfin stop
Start
cd /mnt/usb/docker/jellyfin/config
docker compose up -d