diff --git a/restart-ai-stack.sh b/restart-ai-stack.sh new file mode 100644 index 0000000..84b05ae --- /dev/null +++ b/restart-ai-stack.sh @@ -0,0 +1,30 @@ +#!/bin/bash +set -e + +echo "🔄 Restarting AI stack containers..." + +restart_container() { + local name=$1 + + if docker container ls -a --format '{{.Names}}' | grep -q "^$name$"; then + echo "🔁 Restarting $name..." + docker restart "$name" + else + echo "❌ $name not found — skipping." + fi +} + +# Core tools +restart_container open-webui +restart_container jupyterlab +restart_container comfyui +restart_container whisper +restart_container stable-diffusion +restart_container tg-webui +restart_container localai + +# Custom-built +restart_container whispercpp-gpu +restart_container a1111-webui + +echo "✅ All available containers restarted." diff --git a/setup-ai-stack.sh b/setup-ai-stack.sh index 0a3d137..937204b 100644 --- a/setup-ai-stack.sh +++ b/setup-ai-stack.sh @@ -9,6 +9,7 @@ echo "📦 AI Stack Setup Script" echo "Log: $LOG_FILE" echo +docker network inspect ai-stack-net >/dev/null 2>&1 || docker network create ai-stack-net check_container_running() { local name="$1"