coolify/app/Livewire/Project/Application
Andras Bacsai 4ed7a4238a Add per-application Docker image retention for rollback capability
Implement a per-application setting (`docker_images_to_keep`) in `application_settings` table to control how many Docker images are preserved during cleanup. The cleanup process now:

- Respects per-application retention settings (default: 2 images)
- Preserves the N most recent images per application for easy rollback
- Always deletes PR images and keeps the currently running image
- Dynamically excludes application images from general Docker image prune
- Cleans up non-Coolify unused images to prevent disk bloat

Fixes issues where cleanup would delete all images needed for rollback.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 11:02:07 +01:00
..
Deployment Update app/Livewire/Project/Application/Deployment/Show.php 2025-12-04 11:42:39 +01:00
Preview feat(acl): Change views/backend code to able to use proper ACL's later on. Currently it is not enabled. 2025-08-26 10:27:38 +02:00
Advanced.php feat: add Docker build cache preservation toggles and development logging 2025-11-26 13:42:02 +01:00
Configuration.php fix(application-configuration): prevent access to preview deployments for deploy_key applications and update menu visibility accordingly 2025-05-30 14:15:07 +02:00
DeploymentNavbar.php feat(deployments): add log copying functionality to clipboard in dev 2025-10-02 18:34:39 +02:00
General.php fix: restore original base_directory on compose validation failure 2025-12-03 15:57:15 +01:00
Heading.php fix: remove duplicate deployment queue call causing false error messages 2025-11-10 21:31:06 +01:00
Previews.php Merge branch 'next' into shadow/fix-docker-time-command 2025-10-17 18:52:40 +05:30
PreviewsCompose.php Fix preview domain generation for services with multiple domains 2025-10-16 13:10:29 +02:00
Rollback.php Add per-application Docker image retention for rollback capability 2025-12-05 11:02:07 +01:00
Source.php fix(git): trim whitespace from repository, branch, and commit SHA fields 2025-09-30 12:33:40 +02:00
Swarm.php Revert "rector: arrrrr" 2025-01-07 15:31:43 +01:00