mirror of
https://github.com/flavioribeiro/donut.git
synced 2025-09-26 19:11:11 +08:00
85 lines
1.7 KiB
YAML
85 lines
1.7 KiB
YAML
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
working_dir: "/app"
|
|
platform: "linux/amd64"
|
|
volumes:
|
|
- "./:/app/"
|
|
ports:
|
|
- "8080:8080"
|
|
- "8081:8081"
|
|
- "8081:8081/udp"
|
|
- "6060:6060"
|
|
depends_on:
|
|
- srt
|
|
- rtmp
|
|
links:
|
|
- srt
|
|
- rtmp
|
|
|
|
test:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile-dev
|
|
working_dir: "/app"
|
|
platform: "linux/amd64"
|
|
volumes:
|
|
- "./:/app/"
|
|
command: "go test -v ./..."
|
|
|
|
lint:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile-dev
|
|
working_dir: "/app"
|
|
platform: "linux/amd64"
|
|
volumes:
|
|
- "./:/app/"
|
|
command: "golangci-lint run -v"
|
|
|
|
rtmp: # simulating an RTMP live transmission
|
|
image: jrottenberg/ffmpeg:4.4-alpine
|
|
entrypoint: sh
|
|
command: "/scripts/ffmpeg_rtmp.sh"
|
|
volumes:
|
|
- "./scripts:/scripts"
|
|
- "./fonts/0xProto:/usr/share/fonts"
|
|
environment:
|
|
- RTMP_HOST=0.0.0.0
|
|
- RTMP_PORT=1935
|
|
ports:
|
|
- "1935:1935"
|
|
|
|
srt:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile-srt-live
|
|
entrypoint: sh
|
|
command: "./srt.sh"
|
|
working_dir: "/scripts"
|
|
volumes:
|
|
- "./scripts:/scripts"
|
|
environment:
|
|
- SRT_LISTENING_PORT=40052
|
|
- SRT_UDP_TS_INPUT_HOST=0.0.0.0
|
|
- SRT_UDP_TS_INPUT_PORT=1234
|
|
ports:
|
|
- "40052:40052/udp"
|
|
depends_on:
|
|
- origin
|
|
links:
|
|
- origin
|
|
|
|
origin: # simulating an mpeg-ts upd origin live transmission
|
|
image: jrottenberg/ffmpeg:4.4-alpine
|
|
entrypoint: sh
|
|
command: "/scripts/ffmpeg_mpegts_udp.sh"
|
|
volumes:
|
|
- "./scripts:/scripts"
|
|
- "./fonts/0xProto:/usr/share/fonts"
|
|
environment:
|
|
- SRT_INPUT_HOST=srt
|
|
- SRT_INPUT_PORT=1234
|
|
- PKT_SIZE=1316
|