/
hed1ad
/
CloudGuard_API_Security_Platform
Обзор
Документация
Войти
/
hed1ad
/
CloudGuard_API_Security_Platform
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
start.sh
64 строки
2 KB
hed1ad
1.0.0
26 окт 2025, 14:25
26 окт 2025, 14:25
63b0f76
Код
Авторство
О чём код?
#!/bin/bash echo "==========================================" echo "API Security Scanner MVP" echo "==========================================" echo "" echo "Starting all services with Docker Compose..." echo "" # Check if Docker is running if ! docker info > /dev/null 2>&1; then echo "Error: Docker is not running. Please start Docker first." exit 1 fi # Check if Docker Compose is available if ! command -v docker-compose &> /dev/null; then echo "Error: docker-compose is not installed." exit 1 fi # Start services docker-compose up --build -d echo "" echo "Waiting for services to start..." sleep 5 # Check service health echo "" echo "Checking service health..." API_HEALTH=$(curl -s http://localhost:8000/health 2>/dev/null || echo "down") SCANNER_HEALTH=$(curl -s http://localhost:8001/health 2>/dev/null || echo "down") if [[ $API_HEALTH == *"healthy"* ]]; then echo "✓ API Gateway is running" else echo "✗ API Gateway is not ready yet (may take a minute)" fi if [[ $SCANNER_HEALTH == *"healthy"* ]]; then echo "✓ Scanner Service is running" else echo "✗ Scanner Service is not ready yet (may take a minute)" fi echo "" echo "==========================================" echo "Services started successfully!" echo "==========================================" echo "" echo "Access the application:" echo " Frontend: http://localhost:3000" echo " API Gateway: http://localhost:8000/docs" echo " Scanner: http://localhost:8001/docs" echo "" echo "To view logs:" echo " docker-compose logs -f" echo "" echo "To stop all services:" echo " docker-compose down" echo "" echo "=========================================="