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

Function getComposeSearchCommand

packages/server/src/utils/restore/utils.ts:36–45  ·  view source on GitHub ↗
(
	appName: string,
	type: "stack" | "docker-compose" | "database",
	serviceName?: string,
)

Source from the content-addressed store, hash-verified

34};
35
36export const getComposeSearchCommand = (
37 appName: string,
38 type: "stack" | "docker-compose" | "database",
39 serviceName?: string,
40) => {
41 if (type === "database") {
42 return getServiceContainerCommand(appName || "");
43 }
44 return getComposeContainerCommand(appName || "", serviceName || "", type);
45};
46
47interface DatabaseCredentials {
48 database: string;

Callers 1

getRestoreCommandFunction · 0.85

Calls 2

Tested by

no test coverage detected