#!/bin/bash echo "🐳 DĂ©marrage de l'application Veza en mode Docker..." # VĂ©rifier que Docker est installĂ© if ! command -v docker &> /dev/null; then echo "❌ Docker n'est pas installĂ©" exit 1 fi if ! command -v docker-compose &> /dev/null; then echo "❌ Docker Compose n'est pas installĂ©" exit 1 fi # ArrĂȘter les conteneurs existants echo "🛑 ArrĂȘt des conteneurs existants..." docker-compose -f docker-compose.production.yml down 2>/dev/null # DĂ©marrer tous les services echo "🚀 DĂ©marrage des services..." docker-compose -f docker-compose.production.yml up -d # Attendre que les services soient prĂȘts echo "⏳ Attente que les services soient prĂȘts..." sleep 30 # VĂ©rifier l'Ă©tat des services echo "" echo "🔍 VĂ©rification des services..." # Backend API if curl -s http://localhost:8080/api/health > /dev/null; then echo "✅ Backend API: http://localhost:8080" else echo "❌ Backend API: Non accessible" fi # Frontend if curl -s http://localhost:5174 > /dev/null; then echo "✅ Frontend React: http://localhost:5174" else echo "❌ Frontend React: Non accessible" fi # Stream Server if curl -s http://localhost:8082 > /dev/null; then echo "✅ Stream Server: http://localhost:8082" else echo "❌ Stream Server: Non accessible" fi # Grafana if curl -s http://localhost:3000 > /dev/null; then echo "✅ Grafana: http://localhost:3000" else echo "❌ Grafana: Non accessible" fi # PostgreSQL if docker exec veza-postgres-prod pg_isready -U veza_user > /dev/null 2>&1; then echo "✅ PostgreSQL: localhost:5432" else echo "❌ PostgreSQL: Non accessible" fi # Redis if docker exec veza-redis-prod redis-cli ping > /dev/null 2>&1; then echo "✅ Redis: localhost:6379" else echo "❌ Redis: Non accessible" fi echo "" echo "🎉 Application Veza dĂ©marrĂ©e en mode Docker !" echo "" echo "đŸ“± Services accessibles :" echo " ‱ Frontend Web: http://localhost:5174" echo " ‱ Backend API: http://localhost:8080" echo " ‱ Stream Server: http://localhost:8082" echo " ‱ Grafana (Monitoring): http://localhost:3000" echo " ‱ PostgreSQL: localhost:5432" echo " ‱ Redis: localhost:6379" echo "" echo "💡 Pour arrĂȘter: docker-compose -f docker-compose.production.yml down" echo "💡 Pour voir les logs: docker-compose -f docker-compose.production.yml logs -f"