forked from ShaerWare/AI_Secretary_System
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstop_docker.sh
More file actions
executable file
·31 lines (26 loc) · 905 Bytes
/
stop_docker.sh
File metadata and controls
executable file
·31 lines (26 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# =============================================================================
# AI Secretary System - Docker Stop Script
# Stops Docker containers and optionally vLLM
# =============================================================================
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m'
echo -e "${YELLOW}Stopping Docker containers...${NC}"
docker compose down
# Ask about vLLM
if pgrep -f "vllm.entrypoints" > /dev/null 2>&1; then
echo ""
read -p "Stop vLLM as well? [y/N] " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
echo -e "${YELLOW}Stopping vLLM...${NC}"
pkill -f "vllm.entrypoints" 2>/dev/null || true
echo -e "${GREEN}✓ vLLM stopped${NC}"
else
echo "vLLM left running (for faster restart)"
fi
fi
echo -e "${GREEN}✓ Stopped${NC}"