Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (35 loc) · 2.15 KB
/
Copy pathdocker-compose.yml
File metadata and controls
36 lines (35 loc) · 2.15 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
services:
peertube-runner-gpu:
image: bvdcode/peertube-runner-gpu:latest
container_name: peertube-runner-gpu
restart: unless-stopped
environment:
# More - https://docs.joinpeertube.org/maintain/tools#configuration
- PEERTUBE_RUNNER_URL=https://peertube.example.com # Replace with your PeerTube instance URL
- PEERTUBE_RUNNER_TOKEN=your_registration_token_here # Replace with your PeerTube registration token (ptrrt-...)
# Optional environment variables for the runner
- PEERTUBE_RUNNER_CONCURRENCY=2 # How many concurrent tasks to run
- PEERTUBE_RUNNER_FFMPEG_THREADS=4 # Number of threads for FFMPEG
- PEERTUBE_RUNNER_FFMPEG_NICE=20 # Nice value for FFMPEG process
- PEERTUBE_RUNNER_ENGINE=whisper-ctranslate2 # Engine to use for transcription - can be 'whisper-ctranslate2' or 'whisper-ffmpeg' (not tested)
- PEERTUBE_RUNNER_WHISPER_MODEL=large-v3 # Whisper model to use - can be "tiny", "base", "small", "medium", "large-v2" or "large-v3"
- PEERTUBE_RUNNER_NAME=peertube-runner-gpu # Name of the runner
- PEERTUBE_RUNNER_NAME_CONFLICT=exit # Action on name conflict: 'exit' (default), 'auto' (generate unique), 'wait' (wait for removal)
- PEERTUBE_RUNNER_JOB_TYPES=vod-web-video-transcoding,vod-hls-transcoding,vod-audio-merge-transcoding,live-rtmp-hls-transcoding,video-studio-transcoding,video-transcription,generate-video-storyboard # Or empty to enable all jobs
- NVIDIA_DRIVER_CAPABILITIES=compute,video,utility # Required for GPU support in ffmpeg
volumes:
- peertube-runner-config:/home/runner/.config/peertube-runner-nodejs
- peertube-runner-cache:/home/runner/.cache
# To seed runner settings from a config file, copy config.example.toml to config.toml and mount it.
# - ./config.toml:/home/runner/config.toml:ro
# You can attach a GPU to the container if you have one.
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
volumes:
peertube-runner-config:
peertube-runner-cache: