diff --git a/apps/dokploy/components/dashboard/compose/advanced/add-command.tsx b/apps/dokploy/components/dashboard/compose/advanced/add-command.tsx
index 44ce15c0..6d1b455f 100644
--- a/apps/dokploy/components/dashboard/compose/advanced/add-command.tsx
+++ b/apps/dokploy/components/dashboard/compose/advanced/add-command.tsx
@@ -1,3 +1,4 @@
+import { AlertBlock } from "@/components/shared/alert-block";
import { Button } from "@/components/ui/button";
import {
Card,
@@ -91,7 +92,7 @@ export const AddCommandCompose = ({ composeId }: Props) => {
Run Command
- Append a custom command to the compose file
+ Override a custom command to the compose file
@@ -101,6 +102,12 @@ export const AddCommandCompose = ({ composeId }: Props) => {
onSubmit={form.handleSubmit(onSubmit)}
className="grid w-full gap-4"
>
+
+ Modifying the default command may affect deployment stability,
+ impacting logs and monitoring. Proceed carefully and test
+ thoroughly. By default, the command starts with{" "}
+ docker.
+
{
export const createCommand = (compose: ComposeNested) => {
const { composeType, appName, sourceType } = compose;
+ if (compose.command) {
+ return `${sanitizeCommand(compose.command)}`;
+ }
+
const path =
sourceType === "raw" ? "docker-compose.yml" : compose.composePath;
let command = "";
@@ -154,12 +159,6 @@ export const createCommand = (compose: ComposeNested) => {
command = `stack deploy -c ${path} ${appName} --prune`;
}
- const customCommand = sanitizeCommand(compose.command);
-
- if (customCommand) {
- command = `${command} ${customCommand}`;
- }
-
return command;
};