diff --git a/.env.example b/.env.example index 583bea3..16f1fbe 100644 --- a/.env.example +++ b/.env.example @@ -1,8 +1,8 @@ # Project APP_NAME=ktvcentral -APP_DOMAIN=superstarzqd.dnsnet.cc +APP_DOMAIN=zqd.superstar.dnsnet.cc APP_PORT=80 -APP_URL=http://superstarzqd.dnsnet.cc/ +APP_URL=http://zqd.superstar.dnsnet.cc/ REPO_URL="http://47.251.18.130:3000/Leecheng/KTVCentral.git" REPO_BRANCH="main" diff --git a/start.sh b/start.sh index 6ace948..9690a34 100755 --- a/start.sh +++ b/start.sh @@ -15,19 +15,11 @@ fi # 使用 .env 中的 APP_NAME 作為 project name PROJECT_NAME="${APP_NAME}" -NETWORK_NAME="${APP_NAME}_network" # 組合額外參數(如果有需要清除 volume 與 image) EXTRA_FLAGS="up -d" if [ "$WIPE" == "true" ]; then EXTRA_FLAGS="up -d --build" - # 檢查並建立 network(如果不存在) - if ! docker network ls --format '{{.Name}}' | grep -wq "$NETWORK_NAME"; then - echo "🔌 建立 Docker 網路 $NETWORK_NAME ..." - docker network create $NETWORK_NAME - else - echo "🔌 Docker 網路 $NETWORK_NAME 已存在" - fi fi echo "🚀 Starting APP services..." diff --git a/stop.sh b/stop.sh index e01813e..3f18c77 100755 --- a/stop.sh +++ b/stop.sh @@ -15,7 +15,6 @@ fi # 使用 .env 中的 APP_NAME 作為 project name PROJECT_NAME="${APP_NAME}" -NETWORK_NAME="${APP_NAME}_network" # 組合額外參數(如果有需要清除 volume 與 image) @@ -28,13 +27,6 @@ echo "🛑 Stopping APP services..." docker compose -p "$PROJECT_NAME" -f docker-compose.yml down $EXTRA_FLAGS if [ "$WIPE" == "true" ]; then - # 檢查並建立 network(如果不存在) - if ! docker network ls --format '{{.Name}}' | grep -wq "$NETWORK_NAME"; then - echo "🔌 Docker 網路 $NETWORK_NAME 不存在" - else - docker network rm $NETWORK_NAME - echo "🔌 Docker 網路 $NETWORK_NAME 已刪除" - fi echo "🧹 所有資料(volumes, image)已清除!" else echo "✅ 所有服務 $PROJECT_NAME 已成功關閉。"