-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·36 lines (28 loc) · 847 Bytes
/
run.sh
File metadata and controls
executable file
·36 lines (28 loc) · 847 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
#!/bin/bash
# Check if Docker Compose is installed
if ! command -v docker &> /dev/null; then
echo "Docker is not installed. Please install it first."
exit 1
fi
if ! docker compose version &> /dev/null; then
echo "Docker Compose is not available. Please ensure Docker Desktop is running."
exit 1
fi
# Start the services
echo "Starting Nexus Agents services..."
docker compose up -d
# Wait for the services to start
echo "Waiting for services to start..."
sleep 5
# Print the URLs
echo "Nexus Agents is now running!"
echo "API: http://localhost:12000"
echo "Web UI: http://localhost:12001"
echo ""
echo "Press Ctrl+C to stop the services"
# Wait for user input
read -p "Press Enter to stop the services..."
# Stop the services
echo "Stopping Nexus Agents services..."
docker compose down
echo "Nexus Agents services stopped."