mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix(teable): port for public database
This commit is contained in:
@@ -10,10 +10,15 @@ export function generate(schema: Schema): Template {
|
|||||||
const mainServiceHash = generateHash(schema.projectName);
|
const mainServiceHash = generateHash(schema.projectName);
|
||||||
const password = generatePassword();
|
const password = generatePassword();
|
||||||
const randomDomain = generateRandomDomain(schema);
|
const randomDomain = generateRandomDomain(schema);
|
||||||
|
|
||||||
|
const publicDbPort = ((min: number, max: number) => {
|
||||||
|
return Math.random() * (max - min) + min;
|
||||||
|
})(32769, 65534);
|
||||||
|
|
||||||
const envs = [
|
const envs = [
|
||||||
`TEABLE_HOST=${randomDomain}`,
|
`TEABLE_HOST=${randomDomain}`,
|
||||||
"TEABLE_PORT=3000",
|
"TEABLE_PORT=3000",
|
||||||
"TEABLE_DB_PORT=42345",
|
`TEABLE_DB_PORT=${publicDbPort}`,
|
||||||
`HASH=${mainServiceHash}`,
|
`HASH=${mainServiceHash}`,
|
||||||
"TIMEZONE=UTC",
|
"TIMEZONE=UTC",
|
||||||
"# Postgres",
|
"# Postgres",
|
||||||
|
|||||||
Reference in New Issue
Block a user