forked from jvdillon/netv
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (58 loc) · 2.03 KB
/
docker-compose.yml
File metadata and controls
60 lines (58 loc) · 2.03 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Docker Compose for neTV
#
# Build:
# docker compose build # Default (optimized FFmpeg)
# FFMPEG_IMAGE=ubuntu:24.04 docker compose build # Alternative (apt FFmpeg)
#
# Run:
# docker compose up -d # Auto-detects hardware (Intel/AMD)
# docker compose --profile nvidia up -d # NVIDIA GPU (driver 580+, Turing+)
#
# NVIDIA with older drivers/GPUs (see README for driver/compute compatibility):
# FFMPEG_IMAGE=ghcr.io/jvdillon/netv-ffmpeg:cuda12.8 docker compose --profile nvidia up -d
#
# Local CUDA 12.4 FFmpeg build (from Dockerfile.ffmpeg):
# docker build --progress plain --build-arg NVIDIA=cuda:12.4 --build-arg FFMPEG_BASE_IMAGE=ubuntu:22.04 -f Dockerfile.ffmpeg -t netv-ffmpeg:cuda12.4 .
# FFMPEG_IMAGE=netv-ffmpeg:cuda12.4 docker compose --profile nvidia build
# FFMPEG_IMAGE=netv-ffmpeg:cuda12.4 docker compose --profile nvidia up -d
#
# No GPU or /dev/dri? Comment out the 'devices' section below.
services:
netv:
build:
context: .
args:
FFMPEG_IMAGE: ${FFMPEG_IMAGE:-ghcr.io/jvdillon/netv-ffmpeg:latest}
image: netv
container_name: netv
ports:
- "${NETV_PORT:-8000}:8000"
environment:
- NETV_PORT=8000
- NETV_HTTPS=${NETV_HTTPS:-}
- LOG_LEVEL=INFO # DEBUG for verbose logging
volumes:
- ./cache:/app/cache
- /etc/localtime:/etc/localtime:ro # Use host timezone for EPG
# For HTTPS, also mount your certificates:
# - /etc/letsencrypt:/etc/letsencrypt:ro
# Use system RAM instead of using local storage to store transcodes
# - /dev/shm:/tmp
restart: unless-stopped
# Hardware acceleration (Intel/AMD) - comment out if no /dev/dri
devices:
- /dev/dri:/dev/dri
# NVIDIA GPU: docker compose --profile nvidia up -d
netv-nvidia:
extends:
service: netv
container_name: netv
profiles:
- nvidia
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]