一个可行的docker部署方案

This commit is contained in:
tianxin
2025-04-23 20:34:41 +08:00
parent a433003f74
commit 18b231e637
24 changed files with 1663 additions and 118 deletions

44
docker/build.sh Executable file
View File

@@ -0,0 +1,44 @@
#/bin/bash
set -e
version=2.7.3
git clone https://gitee.com/pan648540858/wvp-GB28181-pro.git
cd wvp-GB28181-pro/web_src && \
npm install && \
npm run build
cd ../../
cp -r wvp-GB28181-pro/src/main/resources/static/* ./nginx/dist
echo "构建ZLM容器"
cd ./media/
chmod +x ./build.sh
./build.sh
cd ../
echo "构建数据库容器"
cd ./mysql/
chmod +x ./build.sh
./build.sh
cd ../
echo "构建Redis容器"
cd ./redis/
chmod +x ./build.sh
./build.sh
cd ../
echo "构建WVP容器"
cd ./wvp/
chmod +x ./build.sh
./build.sh
cd ../
echo "构建Nginx容器"
cd ./nginx/
chmod +x ./build.sh
./build.sh
cd ../
./push.sh