|
|
|
|
|
|
|
Write-Host "π¦ Starting Gradio FastAPI Django Main Application" -ForegroundColor Cyan |
|
Write-Host "Emoji: π¦" -ForegroundColor Yellow |
|
Write-Host "SDK: Gradio 4.29.0" -ForegroundColor Green |
|
Write-Host "App File: app.py" -ForegroundColor Blue |
|
|
|
|
|
if (!(Get-Process "Docker Desktop" -ErrorAction SilentlyContinue)) { |
|
Write-Host "β Docker Desktop is not running. Please start Docker Desktop first." -ForegroundColor Red |
|
exit 1 |
|
} |
|
|
|
|
|
Write-Host "π¨ Building and starting containers..." -ForegroundColor Cyan |
|
docker-compose up --build -d |
|
|
|
if ($LASTEXITCODE -eq 0) { |
|
Write-Host "β
Application started successfully!" -ForegroundColor Green |
|
Write-Host "π Application is running at: http://localhost:7860" -ForegroundColor Blue |
|
Write-Host "π Container status:" -ForegroundColor Yellow |
|
docker-compose ps |
|
|
|
Write-Host "`nπ To view logs: docker-compose logs -f" -ForegroundColor Cyan |
|
Write-Host "π To stop: docker-compose down" -ForegroundColor Cyan |
|
} else { |
|
Write-Host "β Failed to start application. Check the logs:" -ForegroundColor Red |
|
docker-compose logs |
|
} |