MCPcopy
hub / github.com/Dokploy/dokploy / generateBindMounts

Function generateBindMounts

packages/server/src/utils/docker/utils.ts:640–652  ·  view source on GitHub ↗
(mounts: ApplicationNested["mounts"])

Source from the content-addressed store, hash-verified

638};
639
640export const generateBindMounts = (mounts: ApplicationNested["mounts"]) => {
641 if (!mounts || mounts.length === 0) {
642 return [];
643 }
644
645 return mounts
646 .filter((mount) => mount.type === "bind")
647 .map((mount) => ({
648 Type: "bind" as const,
649 Source: mount.hostPath || "",
650 Target: mount.mountPath,
651 }));
652};
653
654export const generateFileMounts = (
655 appName: string,

Callers 8

mechanizeDockerContainerFunction · 0.90
buildMysqlFunction · 0.90
buildMongoFunction · 0.90
buildRedisFunction · 0.90
buildLibsqlFunction · 0.90
buildPostgresFunction · 0.90
buildMariadbFunction · 0.90
rollbackApplicationFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected