feat(dokploy): add lobe chat

This commit is contained in:
Mauricio Siu
2024-10-27 20:48:42 -06:00
parent 0e8a3c36f3
commit cf666ceb19
5 changed files with 51 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

View File

@@ -357,9 +357,9 @@ export const composeRouter = createTRPCRouter({
const generate = await loadTemplateModule(input.id as TemplatesKeys);
const admin = await findAdminById(ctx.user.adminId);
let serverIp = admin.serverIp;
let serverIp = admin.serverIp || "127.0.0.1";
if (!admin.serverIp) {
if (!serverIp) {
throw new TRPCError({
code: "NOT_FOUND",
message:

View File

@@ -0,0 +1,12 @@
version: '3.8'
services:
lobe-chat:
image: lobehub/lobe-chat:v1.26.1
restart: always
ports:
- 3210
environment:
OPENAI_API_KEY: sk-xxxx
OPENAI_PROXY_URL: https://api-proxy.com/v1
ACCESS_CODE: lobe66

View File

@@ -0,0 +1,22 @@
import {
type DomainSchema,
type Schema,
type Template,
generateRandomDomain,
} from "../utils";
export function generate(schema: Schema): Template {
const mainDomain = generateRandomDomain(schema);
const domains: DomainSchema[] = [
{
host: mainDomain,
port: 3210,
serviceName: "lobe-chat",
},
];
return {
domains,
};
}

View File

@@ -569,6 +569,20 @@ export const templates: TemplateData[] = [
docs: "https://docs.stirlingpdf.com/",
},
tags: ["pdf", "tools"],
load: () => import("./portainer/index").then((m) => m.generate),
load: () => import("./stirling/index").then((m) => m.generate),
},
{
id: "lobe-chat",
name: "Lobe Chat",
version: "v1.26.1",
description: "Lobe Chat - an open-source, modern-design AI chat framework.",
logo: "lobe-chat.png",
links: {
github: "https://github.com/lobehub/lobe-chat",
website: "https://chat-preview.lobehub.com/",
docs: "https://lobehub.com/docs/self-hosting/platform/docker-compose",
},
tags: ["IA", "chat"],
load: () => import("./lobe-chat/index").then((m) => m.generate),
},
];