File size: 730 Bytes
1e13199
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Gradio FastAPI Django Main - Docker Compose Stop Script

Write-Host "πŸ›‘ Stopping Gradio FastAPI Django Main Application" -ForegroundColor Red

# Stop and remove containers
docker-compose down

if ($LASTEXITCODE -eq 0) {
    Write-Host "βœ… Application stopped successfully!" -ForegroundColor Green
} else {
    Write-Host "❌ Failed to stop application properly." -ForegroundColor Red
}

# Optional: Remove unused volumes and images
$cleanup = Read-Host "Do you want to clean up unused Docker resources? (y/N)"
if ($cleanup -eq "y" -or $cleanup -eq "Y") {
    Write-Host "🧹 Cleaning up Docker resources..." -ForegroundColor Yellow
    docker system prune -f
    Write-Host "βœ… Cleanup completed!" -ForegroundColor Green
}