mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
23 lines
454 B
TypeScript
23 lines
454 B
TypeScript
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,
|
|
};
|
|
}
|