Add restart.sh

This commit is contained in:
administrator 2026-03-25 14:59:04 +00:00
parent 47306870c2
commit 9f87ef2a74
1 changed files with 14 additions and 0 deletions

14
restart.sh Normal file
View File

@ -0,0 +1,14 @@
#!/bin/bash
# 重启 docker-compose 服务
# 进入 docker-compose.yml 所在目录
cd "$(dirname "$0")" || exit 1
echo "Stopping docker-compose services..."
docker-compose down
echo "Starting docker-compose services..."
docker-compose up -d
echo "Services restarted successfully!"