-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
Β·39 lines (32 loc) Β· 983 Bytes
/
deploy.sh
File metadata and controls
executable file
Β·39 lines (32 loc) Β· 983 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
32
33
34
35
36
37
38
39
#!/bin/bash
set -e
echo "π Deploying VulnSphere..."
# Check if Docker is running
if ! docker info >/dev/null 2>&1; then
echo "β Docker is not running. Please start Docker first."
exit 1
fi
# Stop existing containers
echo "π Stopping existing containers..."
docker compose down --remove-orphans 2>/dev/null || true
# Build and start services
echo "ποΈ Building and starting services..."
docker compose up --build -d
# Wait for services to be ready
echo "β³ Waiting for services to be ready..."
sleep 10
# Check service status
echo "π Service status:"
docker compose ps
echo ""
echo "β
VulnSphere is ready!"
echo "π Frontend: http://localhost:3000"
echo "π§ API: http://localhost:8000/api/v1"
echo "π Admin: http://localhost:8000/admin"
echo ""
echo "π€ Default admin credentials:"
echo " Email: admin@example.com"
echo " Username: admin"
echo " Password: password"
echo ""
echo "π API Documentation: http://localhost:8000/api/docs"