Files
jellyfin-client/docker-compose.yml
2026-11-03 22:21:03 +01:00

25 lines
794 B
YAML

services:
jellyfin-client:
build:
context: .
dockerfile: Dockerfile
container_name: jellyfin-client
restart: unless-stopped
network_mode: host
environment:
- DISPLAY=${DISPLAY:-:0}
- MPV_VO=${MPV_VO:-gpu} # 'gpu' for video window, 'null' for headless
- MPV_HWDEC=${MPV_HWDEC:-auto} # 'auto', 'vaapi', 'nvdec', or 'no'
- MPV_FULLSCREEN=${MPV_FULLSCREEN:-false} # Windowed by default for desktop testing
volumes:
# Optional: Mount custom config.yaml if present
- ./config.yaml:/app/config.yaml:ro
# X11 Display passthrough to show video window on host screen
- /tmp/.X11-unix:/tmp/.X11-unix:ro
# Hardware acceleration devices
devices:
- /dev/dri:/dev/dri
- /dev/snd:/dev/snd