diff --git a/script/run_28181.sh b/script/run_28181.sh index af1cd23..b046450 100755 --- a/script/run_28181.sh +++ b/script/run_28181.sh @@ -91,8 +91,10 @@ function docker_run(){ #启动28181 if [[ "$RTVS_NETWORK_HOST" == "true" ]]; then + updateXml $DOCKER_GBSIP_PATH/Setting.xml RTVSAPI "http://127.0.0.1:$PORT_DEV_START/" docker run --name $DOCKER_GBSIP_NAME --net host --restart always --privileged=true -v $DOCKER_GBSIP_PATH:/MyData -e MyDataPath=/MyData -e ASPNETCORE_URLS="http://*:$DOCKER_GBSIP_HTTP_PORT" -d $DOCKER_GBSIP_IMAGE_NAME else + updateXml $DOCKER_GBSIP_PATH/Setting.xml RTVSAPI "http://172.29.108.11/" docker run --name $DOCKER_GBSIP_NAME --net $DOCKER_NETWORK --ip $DOCKER_GBSIP_IP --restart always --privileged=true -v $DOCKER_GBSIP_PATH:/MyData -e MyDataPath=/MyData -p $DOCKER_GBSIP_HTTP_PORT:80 -p $DOCKER_GBSIP_PORT:$DOCKER_GBSIP_PORT/tcp -p $DOCKER_GBSIP_PORT:$DOCKER_GBSIP_PORT/udp -d $DOCKER_GBSIP_IMAGE_NAME fi } diff --git a/script/run_gw.sh b/script/run_gw.sh index dad3fb2..6cd1cb5 100755 --- a/script/run_gw.sh +++ b/script/run_gw.sh @@ -64,6 +64,7 @@ function docker_run(){ fi #启动gw if [[ "$RTVS_NETWORK_HOST" == "true" ]]; then + updateXml $DOCKER_GW_PATH/SettingConfig.xml RTVSAPI "http://127.0.0.1:$PORT_DEV_START/api/GB/" docker run --name $DOCKER_GW_NAME --net host --restart always --privileged=true \ --log-opt max-size=500m --log-opt max-file=3 \ -v $DOCKER_GW_PATH:/MyData \ @@ -71,6 +72,7 @@ function docker_run(){ -e ASPNETCORE_URLS="http://*:$DOCKER_808_HTTP_PORT" \ -d $DOCKER_GW_IMAGE_NAME else + updateXml $DOCKER_GW_PATH/SettingConfig.xml RTVSAPI "http://172.29.108.11/api/GB/" docker run --name $DOCKER_GW_NAME --net $DOCKER_NETWORK --ip $DOCKER_GW_IP --restart always --privileged=true \ --log-opt max-size=500m --log-opt max-file=3 \ -p $DOCKER_808_PORT:9300 \