An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: Cleanup old images, > 3 days
Andras Bacsai88b3910d8042
diff --git a/src/lib/queues/cleanup.ts b/src/lib/queues/cleanup.tsindex dded603f99..981173a318 100644--- a/src/lib/queues/cleanup.ts+++ b/src/lib/queues/cleanup.ts@@ -36,7 +36,7 @@ export default async function () {console.log(error);}if (!dev) {- //Cleanup images that are not managed by coolify+ // Cleanup images that are not managed by coolifytry {await asyncExecShell(`DOCKER_HOST=${host} docker image prune --filter 'label!=coolify.image=true' -a -f`@@ -44,12 +44,12 @@ export default async function () {} catch (error) {console.log(error);}- }- // Cleanup dangling images- try {- await asyncExecShell(`DOCKER_HOST=${host} docker image prune -f`);- } catch (error) {- console.log(error);+ // Cleanup old images >3 days+ try {+ await asyncExecShell(`DOCKER_HOST=${host} docker image prune --filter "until=72h" -a -f`);+ } catch (error) {+ console.log(error);+ }}}}