mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
feat(dokploy): add lobe chat
This commit is contained in:
BIN
apps/dokploy/public/templates/lobe-chat.png
Normal file
BIN
apps/dokploy/public/templates/lobe-chat.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.1 KiB |
@@ -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:
|
||||
|
||||
12
apps/dokploy/templates/lobe-chat/docker-compose.yml
Normal file
12
apps/dokploy/templates/lobe-chat/docker-compose.yml
Normal 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
|
||||
22
apps/dokploy/templates/lobe-chat/index.ts
Normal file
22
apps/dokploy/templates/lobe-chat/index.ts
Normal 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,
|
||||
};
|
||||
}
|
||||
@@ -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),
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user