From 125e297da056f707d54a13dd438efedc19463f42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=B0=8F=E4=BA=91?= Date: Sat, 21 Jun 2025 13:32:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init/7.srs.sh | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/init/7.srs.sh b/init/7.srs.sh index f1dde5e..27e6cbb 100755 --- a/init/7.srs.sh +++ b/init/7.srs.sh @@ -57,6 +57,21 @@ CANDIDATE=${SRS_DOMAIN} # CANDIDATE=${SRS_DOMAIN} echo $CANDIDATE +# docker run -d \ +# --name ${SRS_NAME} \ +# --network $NETWORK \ +# --memory $SRS_MEMORY \ +# --restart unless-stopped \ +# -p ${SRS_RTMP_PORT}:1935 \ +# -p ${SRS_RTC_PORT}:8000/udp \ +# -p ${SRS_SRT_PORT}:10080/udp \ +# --env CANDIDATE=$CANDIDATE \ +# -v "$(pwd)/volumes/srs/conf/srs.conf:/usr/local/srs/conf/docker.conf" \ +# -v "${SRS_DATA}:/usr/local/srs/objs/nginx/html" \ +# --mount type=bind,source=/etc/localtime,target=/etc/localtime,readonly \ +# $SRS_IMAGE + + docker run -d \ --name ${SRS_NAME} \ --network $NETWORK \ @@ -66,12 +81,9 @@ docker run -d \ -p ${SRS_RTC_PORT}:8000/udp \ -p ${SRS_SRT_PORT}:10080/udp \ --env CANDIDATE=$CANDIDATE \ - -v "$(pwd)/volumes/srs/conf/srs.conf:/usr/local/srs/conf/docker.conf" \ -v "${SRS_DATA}:/usr/local/srs/objs/nginx/html" \ --mount type=bind,source=/etc/localtime,target=/etc/localtime,readonly \ - $SRS_IMAGE - - + $SRS_IMAGE ./objs/srs -c conf/srt2rtc.conf