Skip to content

Commit f9b4f00

Browse files
authored
Merge pull request #1134 from Dokploy/1031-excessive-unused-docker-cache-generated-by-dokploy-deployments
feat: add cleanup cache on deployments
2 parents 0892744 + adb204e commit f9b4f00

File tree

40 files changed

+13428
-108
lines changed

40 files changed

+13428
-108
lines changed

apps/dokploy/__test__/traefik/server/update-server-config.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ import {
1414
import { beforeEach, expect, test, vi } from "vitest";
1515

1616
const baseAdmin: Admin = {
17+
cleanupCacheApplications: false,
18+
cleanupCacheOnCompose: false,
19+
cleanupCacheOnPreviews: false,
1720
createdAt: "",
1821
authId: "",
1922
adminId: "string",

apps/dokploy/components/dashboard/database/backups/show-backups.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export const ShowBackups = ({ id, type }: Props) => {
7575
{data?.length === 0 ? (
7676
<div className="flex flex-col items-center gap-3">
7777
<DatabaseBackup className="size-8 text-muted-foreground" />
78-
<span className="text-base text-muted-foreground">
78+
<span className="text-base text-muted-foreground text-center">
7979
To create a backup it is required to set at least 1 provider.
8080
Please, go to{" "}
8181
<Link

apps/dokploy/components/dashboard/monitoring/docker/show.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export const DockerMonitoring = ({
200200
</div>
201201
</header>
202202

203-
<div className="grid gap-6 md:grid-cols-2">
203+
<div className="grid gap-6 lg:grid-cols-2">
204204
<Card className="bg-background">
205205
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
206206
<CardTitle className="text-sm font-medium">CPU Usage</CardTitle>

apps/dokploy/components/dashboard/project/add-template.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ export const AddTemplate = ({ projectId }: Props) => {
133133
<PopoverTrigger asChild>
134134
<Button
135135
variant="outline"
136-
className={cn("w-full sm:w-[200px] justify-between !bg-input")}
136+
className={cn(
137+
"w-full sm:w-[200px] justify-between !bg-input",
138+
)}
137139
>
138140
{isLoadingTags
139141
? "Loading...."

apps/dokploy/components/dashboard/projects/show.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ export const ShowProjects = () => {
7777
<div className="w-full">
7878
<Card className="h-full bg-sidebar p-2.5 rounded-xl ">
7979
<div className="rounded-xl bg-background shadow-md ">
80-
<div className="flex justify-between gap-4 w-full items-center">
81-
<CardHeader className="">
80+
<div className="flex justify-between gap-4 w-full items-center flex-wrap p-6">
81+
<CardHeader className="p-0">
8282
<CardTitle className="text-xl flex flex-row gap-2">
8383
<FolderInput className="size-6 text-muted-foreground self-center" />
8484
Projects
@@ -87,7 +87,7 @@ export const ShowProjects = () => {
8787
Create and manage your projects
8888
</CardDescription>
8989
</CardHeader>
90-
<div className=" px-4 ">
90+
<div className="">
9191
<HandleProject />
9292
</div>
9393
</div>

apps/dokploy/components/dashboard/settings/certificates/show-certificates.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const ShowCertificates = () => {
5050
{data?.length === 0 ? (
5151
<div className="flex flex-col items-center gap-3 min-h-[25vh] justify-center">
5252
<ShieldCheck className="size-8 self-center text-muted-foreground" />
53-
<span className="text-base text-muted-foreground">
53+
<span className="text-base text-muted-foreground text-center">
5454
You don't have any certificates created
5555
</span>
5656
<AddCertificate />

apps/dokploy/components/dashboard/settings/notifications/show-notifications.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const ShowNotifications = () => {
4747
{data?.length === 0 ? (
4848
<div className="flex flex-col items-center gap-3 min-h-[25vh] justify-center">
4949
<Bell />
50-
<span className="text-base text-muted-foreground">
50+
<span className="text-base text-muted-foreground text-center">
5151
To send notifications it is required to set at least 1
5252
provider.
5353
</span>

apps/dokploy/components/dashboard/swarm/details/details-card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export function NodeCard({ node, serverId }: Props) {
6060
<div className="font-medium">{node.Hostname}</div>
6161
<Badge variant="green">{node.ManagerStatus || "Worker"}</Badge>
6262
</div>
63-
<div className="flex flex-wrap items-center space-x-4">
63+
<div className="flex flex-wrap items-center gap-4">
6464
<Badge variant="green">TLS Status: {node.TLSStatus}</Badge>
6565
<Badge variant="blue">Availability: {node.Availability}</Badge>
6666
</div>

apps/dokploy/components/dashboard/swarm/monitoring-card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default function SwarmMonitorCard({ serverId }: Props) {
7272
return (
7373
<Card className="h-full bg-sidebar p-2.5 rounded-xl mx-auto w-full">
7474
<div className="rounded-xl bg-background shadow-md p-6 flex flex-col gap-4">
75-
<header className="flex items-center justify-between">
75+
<header className="flex items-center flex-wrap gap-4 justify-between">
7676
<div className="space-y-1">
7777
<CardTitle className="text-xl flex flex-row gap-2">
7878
<WorkflowIcon className="size-6 text-muted-foreground self-center" />

apps/dokploy/components/layouts/dashboard-layout.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,5 @@ interface Props {
55
}
66

77
export const DashboardLayout = ({ children }: Props) => {
8-
return (
9-
<Page>
10-
<div>{children}</div>
11-
</Page>
12-
);
8+
return <Page>{children}</Page>;
139
};

0 commit comments

Comments
 (0)