# stream-push-app **Repository Path**: wx_40fda5c5f5/stream-push-app ## Basic Information - **Project Name**: stream-push-app - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: dev - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-11-11 - **Last Updated**: 2025-11-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 项目运行介绍 ## 安装宝塔 ``` wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh ``` ## 安装nvm、nodejs ``` curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash source ~/.bashrc nvm install 18 ``` ## 上传项目文件,并运行 npm i 安装依赖,项目使用预安装的 node_modules ## 宝塔中安装 docker、redis(设置密码222222) # 初次运行 ## 启动指令 ``` docker-compose build docker-compose up -d ``` # 更新后运行 ## 步骤一:更改.env 内的版本号 ## 步骤二:重启 ``` docker-compose down docker-compose build --no-cache docker-compose up -d ./setup_routing.sh ``` ## 步骤三:在当前目录下运行IP分配 ``` ./setup_routing.sh ``` # 新增IP需要修改: - .env 环境变量 - ./setup_routing.sh 内的 IP 分配脚本 - docker-compose.yml 内的端口映射 # 其他 ## 确认容器的实际内部IP docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' stream-app-1 docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' stream-app-2