配置ZLM

This commit is contained in:
孙小云 2026-01-13 17:30:21 +08:00
parent d67d8bfa6e
commit 968f62c7e8
2 changed files with 32 additions and 0 deletions

View File

@ -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

View File

@ -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