配置ZLM
This commit is contained in:
parent
d67d8bfa6e
commit
968f62c7e8
|
|
@ -0,0 +1,12 @@
|
||||||
|
# 端口配置
|
||||||
|
RTMP_PORT=1935
|
||||||
|
HTTP_PORT=8080
|
||||||
|
HTTPS_PORT=8443
|
||||||
|
RTSP_PORT=8554
|
||||||
|
RTP_TCP_PORT=10000
|
||||||
|
RTP_UDP_PORT=10000
|
||||||
|
WEBRTC_UDP_PORT1=8000
|
||||||
|
WEBRTC_UDP_PORT2=9000
|
||||||
|
|
||||||
|
# 重启策略
|
||||||
|
RESTART_POLICY=unless-stopped
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
# 此镜像为github持续集成自动编译推送,跟代码(master分支)保持最新状态
|
||||||
|
services:
|
||||||
|
zlmediakit:
|
||||||
|
image: registry.t-aaron.com/zlmediakit/zlmediakit
|
||||||
|
container_name: zlmediakit
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "${RTMP_PORT:-1935}:1935" # RTMP
|
||||||
|
- "${HTTP_PORT:-9090}:80" # HTTP
|
||||||
|
- "${HTTPS_PORT:-8443}:443" # HTTPS
|
||||||
|
- "${RTSP_PORT:-8554}:554" # RTSP
|
||||||
|
- "${RTP_TCP_PORT:-10000}:10000" # RTP TCP
|
||||||
|
- "${RTP_UDP_PORT:-10000}:10000/udp" # RTP UDP
|
||||||
|
- "${WEBRTC_UDP_PORT1:-8000}:8000/udp" # WebRTC UDP
|
||||||
|
- "${WEBRTC_UDP_PORT2:-9000}:9000/udp" # WebRTC UDP
|
||||||
|
|
||||||
|
networks:
|
||||||
|
default:
|
||||||
|
external: true
|
||||||
|
name: docker_default
|
||||||
Loading…
Reference in New Issue