diff --git a/apps/dokploy/server/api/routers/compose.ts b/apps/dokploy/server/api/routers/compose.ts index f97fac37..3b8a92f6 100644 --- a/apps/dokploy/server/api/routers/compose.ts +++ b/apps/dokploy/server/api/routers/compose.ts @@ -227,7 +227,8 @@ export const composeRouter = createTRPCRouter({ if (mounts && mounts?.length > 0) { for (const mount of mounts) { await createMount({ - mountPath: mount.mountPath, + filePath: mount.filePath, + mountPath: "", content: mount.content, serviceId: compose.composeId, serviceType: "compose", diff --git a/apps/dokploy/templates/listmonk/index.ts b/apps/dokploy/templates/listmonk/index.ts index 8dbea12e..d56d783d 100644 --- a/apps/dokploy/templates/listmonk/index.ts +++ b/apps/dokploy/templates/listmonk/index.ts @@ -21,7 +21,7 @@ export function generate(schema: Schema): Template { const mounts: Template["mounts"] = [ { - mountPath: "./config.toml", + filePath: "config.toml", content: `[app] address = "0.0.0.0:9000" diff --git a/apps/dokploy/templates/plausible/index.ts b/apps/dokploy/templates/plausible/index.ts index 95cfd4ed..643c5df0 100644 --- a/apps/dokploy/templates/plausible/index.ts +++ b/apps/dokploy/templates/plausible/index.ts @@ -23,7 +23,7 @@ export function generate(schema: Schema): Template { const mounts: Template["mounts"] = [ { - mountPath: "./clickhouse/clickhouse-config.xml", + filePath: "/clickhouse/clickhouse-config.xml", content: ` @@ -45,7 +45,7 @@ export function generate(schema: Schema): Template { `, }, { - mountPath: "./clickhouse/clickhouse-user-config.xml", + filePath: "/clickhouse/clickhouse-user-config.xml", content: ` diff --git a/apps/dokploy/templates/utils/index.ts b/apps/dokploy/templates/utils/index.ts index 03ab71a4..4d194ba9 100644 --- a/apps/dokploy/templates/utils/index.ts +++ b/apps/dokploy/templates/utils/index.ts @@ -13,7 +13,7 @@ export interface Schema { export interface Template { envs: string[]; mounts?: { - mountPath: string; + filePath: string; content?: string; }[]; }