feat(open-webui): add open-webui template

This commit is contained in:
Andrey Kucherenko
2024-07-03 18:21:01 +03:00
parent 4d251271b9
commit 152a54b251
4 changed files with 75 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
import {
generateHash,
generateRandomDomain,
type Template,
type Schema,
} from "../utils";
export function generate(schema: Schema): Template {
const mainServiceHash = generateHash(schema.projectName);
const randomDomain = generateRandomDomain(schema);
const envs = [
`OPEN_WEBUI_HOST=${randomDomain}`,
"OPEN_WEBUI_PORT=8080",
`HASH=${mainServiceHash}`,
'OLLAMA_DOCKER_TAG=latest',
'WEBUI_DOCKER_TAG=main'
];
return {
envs,
};
}