-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
79 lines (79 loc) · 3.03 KB
/
compose.yml
File metadata and controls
79 lines (79 loc) · 3.03 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
services:
srs:
image: ossrs/srs:v6.0-a1
container_name: srs
restart: always
ports:
# rtmp端口(rtp和app使用)
- ${VIDEO_PORT_RTMP}:1935
# api端口,建议nginx代理, 内部别名访问
#- 1985:1985
# http-flv/hls端口,建议nginx代理, 内部别名访问
#- 8080:8080
volumes:
- "/home/docker/video/srs/conf:/usr/local/srs/conf"
- "${DATA_DIR:-/data}/srs/html:/usr/local/srs/objs/nginx/html"
ulimits:
nproc: 65535
nofile:
soft: 20000
hard: 40000
logging:
driver: "json-file"
options:
# 限制日志文件大小
max-size: "100m"
# rtp推流服务
rtp:
image: transcodegroup/gateway-rtpserver:23.8.5
container_name: rtp
restart: always
ports:
# 终端-实时直播端口
- ${VIDEO_PORT_LIVE}:${VIDEO_PORT_LIVE}
# 终端-录像回放端口
- ${VIDEO_PORT_RECORD}:${VIDEO_PORT_RECORD}
# 终端-对讲
- ${VIDEO_PORT_TALK}:${VIDEO_PORT_TALK}
# 终端-终端监听
- ${VIDEO_PORT_MONITOR}:${VIDEO_PORT_MONITOR}
# 客户端-对讲和api服务接口,建议nginx代理, 内部别名访问
# - 9006:9006
volumes:
- "${DATA_DIR:-/data}/logs/rtp:/logs"
environment:
# 服务节点名称
- gateway_zone=live-${VIDEO_IP:?required}
# 外网地址, 注册到网关
- gateway_host=${VIDEO_IP:?required}
# 客户端通过 ws://localhost:8080/ws/talk对讲, monitor监听, nginx代理端口
- gateway_wss=wss://${VIDEO_HOSTNAME:?required}:${VIDEO_PORT_HTTPS_1}/ws
# 网关服务注册地址, 建议使用域名
- gateway_media_enabled=true
- gateway_media_api=http://${JTT808_HOST:-jtt808}:${JTT808_PORT_HTTP:-9012}
# 终端连接端口, 建议使用默认值
- gateway_port_live=${VIDEO_PORT_LIVE}
- gateway_port_record=${VIDEO_PORT_RECORD}
- gateway_port_talk=${VIDEO_PORT_TALK}
- gateway_port_monitor=${VIDEO_PORT_MONITOR}
# rtp连接srs, 建议使用默认值
- gateway_srs_rtmp=rtmp://srs:1935
- gateway_srs_api=http://srs:1985
# 是否启用redis支持 默认禁用, Bus平台建议开启, V2建议关闭
- spring_data_redis_repositories_enabled=false
# APP的RTMP连接
- gateway_srs_wan_rtmp=rtmp://${VIDEO_IP:?required}:${VIDEO_PORT_RTMP}
# 前端http-flv地址, 支持多个用逗号分隔
- gateway_srs_wan_http=https://${VIDEO_HOSTNAME:?required}:${VIDEO_PORT_HTTPS_1}/mdvr,https://${VIDEO_HOSTNAME:?required}:${VIDEO_PORT_HTTPS_2}/mdvr,https://${VIDEO_HOSTNAME:?required}:${VIDEO_PORT_HTTPS_3}/mdvr,https://${VIDEO_HOSTNAME:?required}:${VIDEO_PORT_HTTPS_4}/mdvr,https://${VIDEO_HOSTNAME:?required}:${VIDEO_PORT_HTTPS_5}/mdvr
depends_on:
- srs
ulimits:
nproc: 65535
nofile:
soft: 20000
hard: 40000
logging:
driver: "json-file"
options:
# 限制日志文件大小
max-size: "100m"