feat(docker): add support for standalone container log retrieval

This commit is contained in:
Mauricio Siu
2025-02-25 23:04:19 -06:00
parent 203da1a8fe
commit 29c1e4691e
4 changed files with 26 additions and 4 deletions
+6 -1
View File
@@ -65,10 +65,15 @@ export const dockerRouter = createTRPCRouter({
z.object({
appName: z.string().min(1),
serverId: z.string().optional(),
type: z.enum(["standalone", "swarm"]),
}),
)
.query(async ({ input }) => {
return await getContainersByAppLabel(input.appName, input.serverId);
return await getContainersByAppLabel(
input.appName,
input.type,
input.serverId,
);
}),
getStackContainersByAppName: protectedProcedure