forked from orcachillin/vrchat-jellyfin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (37 loc) · 1.57 KB
/
Copy pathdocker-compose.yml
File metadata and controls
41 lines (37 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
version: '3.8'
services:
vr-jellyfin:
image: ghcr.io/zutyosh/vr-jellyfin:master
container_name: vr-jellyfin
restart: unless-stopped
ports:
- "${WEBSERVER_PORT:-4000}:${WEBSERVER_PORT:-4000}"
environment:
# Required Jellyfin connection settings
- JELLYFIN_HOST=${JELLYFIN_HOST:?}
- JELLYFIN_USERNAME=${JELLYFIN_USERNAME:?}
- JELLYFIN_PASSWORD=${JELLYFIN_PASSWORD:?}
# Optional server settings
- WEBSERVER_PORT=${WEBSERVER_PORT:-4000}
# Optional audio/video quality settings with defaults
- AUDIO_BITRATE=${AUDIO_BITRATE:-192000}
- VIDEO_BITRATE=${VIDEO_BITRATE:-5000000}
- MAX_AUDIO_CHANNELS=${MAX_AUDIO_CHANNELS:-2}
- MAX_HEIGHT=${MAX_HEIGHT:-1080}
- MAX_WIDTH=${MAX_WIDTH:-1920}
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:${WEBSERVER_PORT:-4000}/api/health || exit 1
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
- hls-cache:/app/cache/hls
labels:
# Note: For Traefik deployments, add these labels to protect the interface but not video/HLS streams:
# - "traefik.http.routers.vr-jellyfin.rule=Host(`your-domain.com`) && !PathPrefix(`/v/`) && !PathPrefix(`/playlist/`)"
# - "traefik.http.routers.vr-jellyfin.middlewares=auth@file,secureHeaders@file"
# - "traefik.http.routers.vr-jellyfin-video.rule=Host(`your-domain.com`) && (PathPrefix(`/v/`) || PathPrefix(`/playlist/`))"
# - "traefik.http.routers.vr-jellyfin-video.middlewares=secureHeaders@file"
volumes:
hls-cache: