rathinosk/ersatztv

By rathinosk

Updated 3 months ago

Transform your media library into live TV channels with custom EPGs and seamless scheduling.

Image
Networking
Web servers
Content management system
0

754

rathinosk/ersatztv repository overview

Rathinosk ErsatzTV Fork

Docker-Compose Configuration

This is my actual docker-compose configuration. My host system is pretty beefy, so you may need to adjust the resource allocation -- or remove it entirely.

version: '3.8'
services:
    ersatztv:
        image: rathinosk/ersatztv:latest
        container_name: ersatztv
        runtime: nvidia # Expose NVIDIA GPUs
        network_mode: host
        environment:
            - TZ=${TZ}
            # NVIDIA GPU Settings
            - NVIDIA_VISIBLE_DEVICES=all
            - NVIDIA_DRIVER_CAPABILITIES=compute,utility,video
            # ETV Parameters
            - ETV_CONFIG_FOLDER=/config
            - ETV_STREAMING_PORT=8409
            - ETV_UI_PORT=8409
            #- ETV_DISABLE_VULKAN=1
            # User and Group for the ErsatzTV process
            - GIDLIST=${PGIDLIST} 
            # SQL Database Configuration
            - PROVIDER=MySql
            - MYSQL__CONNECTIONSTRING=${MYSQL__CONNECTIONSTRING}
            # ETV Trancode Folder
            - ETV_TRANSCODE_FOLDER=/transcode
        ports:
            - 8409:8409
        volumes:
            - /opt/ersatztv:/config           # formerly /root/.local/share/ersatztv
            - /mnt/media/:/mnt/media/:ro      # read-only access to media
            - tmpfs_cache:/transcode          # Transcoding directory (RAM)
        restart: unless-stopped
        devices:
            - /dev/dri:/dev/dri               # VAAPI/NVDEC/NVENC render nodes
        healthcheck:
            test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8409"] 
            interval: 30s
            timeout: 10s
            retries: 3
            start_period: 5s
        deploy:
            resources:
                limits:
                    memory: 16G
                reservations:
                    memory: 4G
                    cpus: 2
                    devices:
                        - driver: nvidia
                          count: 1
                          capabilities: [gpu]

# Transcoding Volume (tmpfs)
volumes:
    tmpfs_cache:
        driver_opts:
            type: tmpfs
            device: tmpfs
            o: size=8G,mode=1777

Environment Variables

This configuration one is pretty light on variables.

TZ=America/Detroit
MYSQL__CONNECTIONSTRING="Server=<IP Address>;Database=ersatztv;Uid=<User ID>;Pwd=<Password>;AllowLoadLocalInfile=true;"
PGIDLIST=867,530,999

Tag summary

Content type

Image

Digest

sha256:cb63984be

Size

313.3 MB

Last updated

3 months ago

docker pull rathinosk/ersatztv:v26.4.0