-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstop-docs.sh
More file actions
executable file
Β·50 lines (41 loc) Β· 1.61 KB
/
stop-docs.sh
File metadata and controls
executable file
Β·50 lines (41 loc) Β· 1.61 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
# AI Event Concepter - Documentation Stopper
echo "π AI Event Concepter - Stopping API Documentation"
echo "=================================================="
# Check if Docker is running
if ! docker info >/dev/null 2>&1; then
echo "β Docker is not running. Cannot stop containers."
exit 1
fi
# Check if docker-compose is available
if ! command -v docker-compose >/dev/null 2>&1; then
echo "β docker-compose not found. Please install Docker Compose."
exit 1
fi
echo "π Stopping Swagger UI documentation containers..."
# Stop and remove all documentation containers
docker-compose -f docker-compose.swagger.yml down
echo ""
echo "β
Documentation services stopped!"
echo ""
echo "π§Ή Cleanup Options:"
echo "=================="
echo "ποΈ Remove volumes: docker-compose -f docker-compose.swagger.yml down -v"
echo "π§½ Remove images: docker-compose -f docker-compose.swagger.yml down --rmi all"
echo "π₯ Full cleanup: docker-compose -f docker-compose.swagger.yml down -v --rmi all --remove-orphans"
echo ""
echo "π To restart documentation:"
echo "============================"
echo "π« Run start script: ./start-docs.sh"
echo ""
# Check final container status
echo "π Checking remaining containers..."
RUNNING_CONTAINERS=$(docker-compose -f docker-compose.swagger.yml ps -q)
if [ -z "$RUNNING_CONTAINERS" ]; then
echo "β
All documentation containers stopped successfully!"
else
echo "β οΈ Some containers may still be running:"
docker-compose -f docker-compose.swagger.yml ps
fi
echo ""
echo "π Documentation services shutdown complete!"