Docker Compose Database Setup (#379)

Co-authored-by: Aman Varshney <amanvarshney.work@gmail.com>
This commit is contained in:
Aidan Sunbury
2025-07-10 09:54:52 -07:00
committed by GitHub
parent 1f2f150f17
commit 3569b04ac4
27 changed files with 479 additions and 140042 deletions

View File

@@ -833,6 +833,26 @@ export async function handleExtras(
}
}
export async function setupDockerComposeTemplates(
projectDir: string,
context: ProjectConfig,
): Promise<void> {
if (context.dbSetup !== "docker" || context.database === "none") {
return;
}
const serverAppDir = path.join(projectDir, "apps/server");
const dockerSrcDir = path.join(
PKG_ROOT,
`templates/db-setup/docker-compose/${context.database}`,
);
if (await fs.pathExists(dockerSrcDir)) {
await processAndCopyFiles("**/*", dockerSrcDir, serverAppDir, context);
} else {
}
}
export async function setupDeploymentTemplates(
projectDir: string,
context: ProjectConfig,