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
} |