From 5ec3d63ab272bf758da209885159c5f8768ce2d9 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sat, 5 Jul 2025 17:17:51 -0600 Subject: [PATCH] feat(volumes): add alert block for bind mount validation in AddVolumes component - Introduced an AlertBlock to provide users with warnings about host path validity and potential deployment issues when using bind mounts in the AddVolumes component. - This enhancement improves user experience by ensuring users are informed of important considerations when configuring volumes. --- .../advanced/volumes/add-volumes.tsx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/apps/dokploy/components/dashboard/application/advanced/volumes/add-volumes.tsx b/apps/dokploy/components/dashboard/application/advanced/volumes/add-volumes.tsx index 718f98b72..639410bb4 100644 --- a/apps/dokploy/components/dashboard/application/advanced/volumes/add-volumes.tsx +++ b/apps/dokploy/components/dashboard/application/advanced/volumes/add-volumes.tsx @@ -1,3 +1,4 @@ +import { AlertBlock } from "@/components/shared/alert-block"; import { CodeEditor } from "@/components/shared/code-editor"; import { Button } from "@/components/ui/button"; import { @@ -169,6 +170,23 @@ export const AddVolumes = ({ onSubmit={form.handleSubmit(onSubmit)} className="grid w-full gap-8 " > + {type === "bind" && ( + +
+

+ Make sure the host path is a valid path and exists in the + host machine. +

+

+ Cluster Warning: If you're using cluster + features, bind mounts may cause deployment failures since + the path must exist on all worker/manager nodes. Consider + using external tools to distribute the folder across nodes + or use named volumes instead. +

+
+
+ )}