-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
55 lines (52 loc) · 1.54 KB
/
docker-compose.yml
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
version: '3.6'
services:
nginx-rtmp:
build:
context: .
network: 'host'
ports:
- ${RTMP_PORT:-1935}:1935
- ${HTTP_PORT:-80}:80
- ${HTTPS_PORT:-443}:443
environment:
- HTTP_PORT=80
- HTTPS_PORT=443
- RTMP_PORT=1935
# set a custom auth token here
- RTMP_AUTH_TOKEN=${RTMP_AUTH_TOKEN:-}
- SSL_ENABLED=${SSL_ENABLED:-false}
- DOMAIN=${DOMAIN:-}
- EMAIL=${EMAIL:-}
- RENEW_INTERVAL=${RENEW_INTERVAL:-1h}
- RTMP_AUTH_URL=${RTMP_AUTH_URL:-http://127.0.0.1:80/auth}
# set custom ffmpeg flags here - DOMAIN=${DOMAIN:-}
#
# example with multiple adaptation sets:
#- FFMPEG_FLAGS=-window_size 100 -max_muxing_queue_size 1000 -map 0:v:0 -map 0:a\?:0 -map 0:v:0 -map 0:a\?:0 -b:v:0 350k -c:v:0 libx264 -filter:v:0 "scale=320:-1" -b:v:1 1000k -c:v:1 libx264 -filter:v:1 "scale=640:-1" -adaptation_sets "id=0,streams=v id=1,streams=a"
#
- FFMPEG_FLAGS=-window_size 100 -max_muxing_queue_size 1000 -c:v copy
env_file:
- ./.env
networks:
- emp-network
tmpfs:
- /dash
rtmp-tester:
build:
context: ./tester/
network: 'host'
command: /run-tests.sh
environment:
# must match auth token above
- RTMP_AUTH_TOKEN=${RTMP_AUTH_TOKEN:-}
- SSL_ENABLED=${SSL_ENABLED:-false}
- RTMP_AUTH_URL=${RTMP_AUTH_URL:-http://nginx-rtmp:80/auth}
env_file:
- ./.env
depends_on:
- nginx-rtmp
networks:
- emp-network
networks:
emp-network:
driver: bridge