kenichi9999999's picture
tesetcase add
a854c6f
raw
history blame
1.29 kB
# Gradio FastAPI Django Main - Docker Compose Start Script
# Based on README.md configuration: Gradio 4.29.0, app.py
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
# Check if Docker is running
if (!(Get-Process "Docker Desktop" -ErrorAction SilentlyContinue)) {
Write-Host "❌ Docker Desktop is not running. Please start Docker Desktop first." -ForegroundColor Red
exit 1
}
# Build and start the containers
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
}