43 lines
1.2 KiB
Text
43 lines
1.2 KiB
Text
version: '3.8'
|
|
|
|
services:
|
|
jellyfin:
|
|
image: jellyfin/jellyfin
|
|
container_name: jellyfin
|
|
hostname: jellyfin
|
|
restart: unless-stopped
|
|
user: 1000:1000
|
|
networks:
|
|
- npm_network
|
|
ports:
|
|
- "8096:8096" # HTTP port
|
|
- "8920:8920" # HTTPS port
|
|
- "7359:7359/udp" # Service discovery
|
|
- "1900:1900/udp" # DLNA
|
|
environment:
|
|
- TZ=America/Los_Angeles
|
|
- JELLYFIN_FFmpeg__EnableHardwareEncoding=true
|
|
- JELLYFIN_FFmpeg__EnableIntelLowPowerEncoding=true
|
|
- LIBVA_DRIVER_NAME=iHD
|
|
- LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri
|
|
devices:
|
|
- /dev/dri/renderD128:/dev/dri/renderD128
|
|
group_add:
|
|
- "993" # render group
|
|
volumes:
|
|
- /opt/docker/jellyfin/config:/config
|
|
- /mnt/hdd0/jellyfin_trascode/:/cache
|
|
- cifs-volumes_videos:/media
|
|
- /usr/lib/x86_64-linux-gnu/intel-opencl:/usr/lib/x86_64-linux-gnu/intel-opencl
|
|
- /usr/lib/x86_64-linux-gnu/libdrm.so.2:/usr/lib/x86_64-linux-gnu/libdrm.so.2
|
|
- /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1:/usr/lib/x86_64-linux-gnu/libdrm_intel.so.1
|
|
extra_hosts:
|
|
- 'host.docker.internal:host-gateway'
|
|
|
|
volumes:
|
|
cifs-volumes_videos:
|
|
external: true
|
|
|
|
networks:
|
|
npm_network:
|
|
external: true
|