docker-compose.yml
version: '3.5'
services:
orchestrator0:
image: livepeer/go-livepeer:master
command: '-orchestrator --network offchain -orchSecret test -serviceAddr orchestrator0:8935 -orchAddr 0.0.0.0'
ports:
- 7935:7935
- 8935:8935
transcoder0:
depends_on:
- orchestrator0
#image: livepeer/go-livepeer:itgpuinswarm
image: livepeer/go-livepeer:master
#build: ./livepeer
command: '-transcoder -network offchain -orchAddr orchestrator0:8935 -orchSecret test -maxSessions 20 -nvidia 0'
broadcaster0:
depends_on:
- orchestrator0
- transcoder0
image: livepeer/go-livepeer:benchmarking
command: '-broadcaster -rtmpAddr broadcaster0:1936 -orchAddr orchestrator0:8935 -cliAddr broadcaster0:7936 -httpAddr broadcaster0:8936 -noOSelection'
ports:
- 1936:1936
- 7936:7936
- 8936:8936
stream1
#!/bin/bash
for i in $(seq 0 4)
do
ffmpeg -re -stream_loop -1 -i bbb_1080p.mp4 -c:a copy -c:v copy -f flv rtmp://localhost:1936/stream/$i &
sleep 0.31
done
wait
version: '3.5'
services:
orchestrator1:
image: livepeer/go-livepeer:master
command: '-orchestrator --network offchain -orchSecret test -serviceAddr orchestrator1:8934 -cliAddr orchestrator1:7934 -orchAddr 0.0.0.0'
ports:
- 7934:7934
- 8934:8934
transcoder1:
depends_on:
- orchestrator1
#image: livepeer/go-livepeer:itgpuinswarm
image: livepeer/go-livepeer:master
#build: ./livepeer
command: '-transcoder -network offchain -orchAddr orchestrator1:8934 -orchSecret test -maxSessions 20 -nvidia 1'
broadcaster1:
depends_on:
- orchestrator1
- transcoder1
image: livepeer/go-livepeer:benchmarking
command: '-broadcaster -rtmpAddr broadcaster1:1937 -orchAddr orchestrator1:8934 -cliAddr broadcaster1:7937 -httpAddr broadcaster1:8937 -noOSelection'
ports:
- 1937:1937
- 7937:7937
- 8937:8937
stream2
#!/bin/bash
for i in $(seq 6 10)
do
ffmpeg -re -stream_loop -1 -i bbb_1080p.mp4 -c:a copy -c:v copy -f flv rtmp://localhost:1936/stream/$i &
sleep 0.31
done
wait