Some checks are pending
tests / build (push) Waiting to run
- Cleaned up comments and formatting in YAML library files (readerc.go, scannerc.go, writerc.go, yaml.go, yamlh.go, yamlprivateh.go). - Improved readability by aligning comments and removing unnecessary whitespace. - Added Dockerfile for ffmpeg-ndi dependencies, ensuring necessary libraries are installed. - Created Dockerfile for restreamer, integrating UI and core components with ffmpeg. - Introduced docker-compose.yml to manage services including avahi, ffmpeg-ndi, and core. - Implemented NDIHandler in the API to discover NDI sources using ffmpeg. - Added placeholder HTML for the Restreamer UI to prevent build issues. - Included Install_NDI_SDK_v6_Linux.sh script for NDI SDK installation.
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
version: '3.8'
|
|
services:
|
|
avahi:
|
|
image: ydkn/avahi
|
|
network_mode: "host"
|
|
container_name: avahi-service
|
|
volumes:
|
|
- /var/run/dbus:/var/run/dbus
|
|
restart: unless-stopped
|
|
|
|
ffmpeg-ndi:
|
|
image: nextream/ffmpeg-ndi:v5.2
|
|
network_mode: "host"
|
|
container_name: ffmpeg-ndi-worker
|
|
depends_on:
|
|
- avahi
|
|
privileged: true
|
|
volumes:
|
|
- /var/run/dbus:/var/run/dbus
|
|
- /var/run/avahi-daemon/socket:/var/run/avahi-daemon/socket
|
|
restart: unless-stopped
|
|
entrypoint: ["sh","-c","while true; do ffmpeg -hide_banner -nostdin -loglevel info -f libndi_newtek -find_sources 1 -i dummy -t 5 -f null -; sleep 10; done"]
|
|
|
|
core:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.whip-test
|
|
network_mode: "host"
|
|
container_name: core-ndi
|
|
depends_on:
|
|
- avahi
|
|
volumes:
|
|
- ./config:/core/config
|
|
- ./data:/core/data
|
|
- /var/run/dbus:/var/run/dbus
|
|
- /var/run/avahi-daemon/socket:/var/run/avahi-daemon/socket
|
|
environment:
|
|
- CORE_WHIP_ENABLE=true
|
|
- CORE_WHIP_ADDRESS=:8555
|
|
- CORE_WHIP_RTSP_ADDRESS=:8554
|
|
- CORE_FFMPEG_BINARY=/usr/local/bin/ffmpeg-core
|
|
- CORE_PLAYOUT_MIN_PORT=10000
|
|
- CORE_PLAYOUT_MAX_PORT=10100
|
|
restart: unless-stopped
|