mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix(template): add missing file path
This commit is contained in:
@@ -82,7 +82,7 @@ export const AddVolumes = ({
|
|||||||
defaultValues: {
|
defaultValues: {
|
||||||
type: serviceType === "compose" ? "file" : "bind",
|
type: serviceType === "compose" ? "file" : "bind",
|
||||||
hostPath: "",
|
hostPath: "",
|
||||||
mountPath: serviceType === "compose" ? "/" : "",
|
mountPath: "",
|
||||||
},
|
},
|
||||||
resolver: zodResolver(mySchema),
|
resolver: zodResolver(mySchema),
|
||||||
});
|
});
|
||||||
@@ -330,22 +330,20 @@ export const AddVolumes = ({
|
|||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{serviceType !== "compose" && (
|
<FormField
|
||||||
<FormField
|
control={form.control}
|
||||||
control={form.control}
|
name="mountPath"
|
||||||
name="mountPath"
|
render={({ field }) => (
|
||||||
render={({ field }) => (
|
<FormItem>
|
||||||
<FormItem>
|
<FormLabel>Mount Path (In the container)</FormLabel>
|
||||||
<FormLabel>Mount Path (In the container)</FormLabel>
|
<FormControl>
|
||||||
<FormControl>
|
<Input placeholder="Mount Path" {...field} />
|
||||||
<Input placeholder="Mount Path" {...field} />
|
</FormControl>
|
||||||
</FormControl>
|
|
||||||
|
|
||||||
<FormMessage />
|
<FormMessage />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -227,6 +227,7 @@ export const composeRouter = createTRPCRouter({
|
|||||||
if (mounts && mounts?.length > 0) {
|
if (mounts && mounts?.length > 0) {
|
||||||
for (const mount of mounts) {
|
for (const mount of mounts) {
|
||||||
await createMount({
|
await createMount({
|
||||||
|
filePath: mount.filePath,
|
||||||
mountPath: mount.mountPath,
|
mountPath: mount.mountPath,
|
||||||
content: mount.content,
|
content: mount.content,
|
||||||
serviceId: compose.composeId,
|
serviceId: compose.composeId,
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ export interface Schema {
|
|||||||
export interface Template {
|
export interface Template {
|
||||||
envs: string[];
|
envs: string[];
|
||||||
mounts?: {
|
mounts?: {
|
||||||
|
filePath: string;
|
||||||
mountPath: string;
|
mountPath: string;
|
||||||
content?: string;
|
content?: string;
|
||||||
}[];
|
}[];
|
||||||
|
|||||||
Reference in New Issue
Block a user