diff --git a/script/cdvr/startcdvr.sh b/script/cdvr/startcdvr.sh index f503c26..33e9134 100755 --- a/script/cdvr/startcdvr.sh +++ b/script/cdvr/startcdvr.sh @@ -156,7 +156,7 @@ function docker_run(){ docker run \ --name $CDVR_DOCKER_CONTAINER_NAME \ --net $DOCKER_NETWORK \ - --ip $LocIP\ + --ip $DOCKER_CDVR_IP\ --restart always \ --privileged=true \ -m $CDVR_MEMORY_LIMIT \ @@ -169,7 +169,7 @@ function docker_run(){ docker run \ --name $CDVR_DOCKER_CONTAINER_NAME \ --net $DOCKER_NETWORK \ - --ip $LocIP\ + --ip $DOCKER_CDVR_IP\ --restart always \ --privileged=true \ -v $CDVR_DOCKER_PATH:/MyData \ diff --git a/script/default_args.sh b/script/default_args.sh index 71bedfa..c9c62a7 100644 --- a/script/default_args.sh +++ b/script/default_args.sh @@ -18,6 +18,7 @@ DOCKER_NETWORK_IPS=${DOCKER_NETWORK_IPS:-"172.29.108"} DOCKER_GATEWAY_HOST=${DOCKER_GATEWAY_HOST:-"$DOCKER_NETWORK_IPS.1"} DOCKER_CVCLUSTER_IP=${DOCKER_CVCLUSTER_IP:-"$DOCKER_NETWORK_IPS.254"} +DOCKER_CDVR_IP=${DOCKER_CDVR_IP:-"$DOCKER_NETWORK_IPS.250"} DOCKER_GW_IP=${DOCKER_GW_IP:-"$DOCKER_NETWORK_IPS.249"} DOCKER_GB2JT_IP=${DOCKER_GB2JT_IP:-"$DOCKER_NETWORK_IPS.248"} DOCKER_GBSIP_IP=${DOCKER_GBSIP_IP:-"$DOCKER_NETWORK_IPS.247"}