From 68d0a48843d0829802e64afaae134a221b67f3f5 Mon Sep 17 00:00:00 2001 From: vicke4 Date: Fri, 21 Mar 2025 01:36:11 +0530 Subject: [PATCH 1/2] fix(backups): auto deletion of backups --- packages/server/src/utils/backups/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/server/src/utils/backups/index.ts b/packages/server/src/utils/backups/index.ts index 4b194efc6..c0359de10 100644 --- a/packages/server/src/utils/backups/index.ts +++ b/packages/server/src/utils/backups/index.ts @@ -80,7 +80,8 @@ export const initCronJobs = async () => { console.log( `PG-SERVER[${new Date().toLocaleString()}] Running Backup ${backupId}`, ); - runPostgresBackup(pg, backup); + await runPostgresBackup(pg, backup); + await keepLatestNBackups(backup, pg.serverId); }); } } @@ -112,6 +113,7 @@ export const initCronJobs = async () => { `MARIADB-SERVER[${new Date().toLocaleString()}] Running Backup ${backupId}`, ); await runMariadbBackup(maria, backup); + await keepLatestNBackups(backup, maria.serverId); }); } } @@ -141,6 +143,7 @@ export const initCronJobs = async () => { `MONGO-SERVER[${new Date().toLocaleString()}] Running Backup ${backupId}`, ); await runMongoBackup(mongo, backup); + await keepLatestNBackups(backup, mongo.serverId); }); } } @@ -170,6 +173,7 @@ export const initCronJobs = async () => { `MYSQL-SERVER[${new Date().toLocaleString()}] Running Backup ${backupId}`, ); await runMySqlBackup(mysql, backup); + await keepLatestNBackups(backup, mysql.serverId); }); } } From 8d227e2a2cf63920d42bbdd8ba0fb962ba40133b Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sun, 23 Mar 2025 04:30:00 -0600 Subject: [PATCH 2/2] feat(dashboard): add informational alert for docker-compose preview requirements --- .../dashboard/compose/general/show-converted-compose.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/dokploy/components/dashboard/compose/general/show-converted-compose.tsx b/apps/dokploy/components/dashboard/compose/general/show-converted-compose.tsx index 49606645c..89a9e0753 100644 --- a/apps/dokploy/components/dashboard/compose/general/show-converted-compose.tsx +++ b/apps/dokploy/components/dashboard/compose/general/show-converted-compose.tsx @@ -62,6 +62,11 @@ export const ShowConvertedCompose = ({ composeId }: Props) => { {isError && {error?.message}} + + Preview your docker-compose file with added domains. Note: At least + one domain must be specified for this conversion to take effect. + +