mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
feat: migrate templates
This commit is contained in:
@@ -1,41 +0,0 @@
|
||||
import {
|
||||
type DomainSchema,
|
||||
type Schema,
|
||||
type Template,
|
||||
generateRandomDomain,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
const domains: DomainSchema[] = [
|
||||
{
|
||||
host: generateRandomDomain(schema),
|
||||
port: 80,
|
||||
serviceName: "all-in-one",
|
||||
},
|
||||
];
|
||||
|
||||
const envs = [
|
||||
"# change domain here",
|
||||
"DOMAIN=my-events.com",
|
||||
"",
|
||||
"POSTGRES_DB=hievents",
|
||||
"POSTGRES_USER=hievents",
|
||||
"POSTGRES_PASSWORD=VERY_STRONG_PASSWORD",
|
||||
"",
|
||||
"VITE_STRIPE_PUBLISHABLE_KEY=",
|
||||
"",
|
||||
"APP_KEY=my-app-key",
|
||||
"JWT_SECRET=STRONG_JWT_SECRET",
|
||||
"",
|
||||
"MAIL_MAILER=",
|
||||
"MAIL_HOST=",
|
||||
"MAIL_PORT=",
|
||||
"MAIL_FROM_ADDRESS=",
|
||||
"MAIL_FROM_NAME=",
|
||||
];
|
||||
|
||||
return {
|
||||
domains,
|
||||
envs,
|
||||
};
|
||||
}
|
||||
27
blueprints/hi-events/template.yml
Normal file
27
blueprints/hi-events/template.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
variables:
|
||||
main_domain: ${randomDomain}
|
||||
postgres_password: ${generatePassword}
|
||||
jwt_secret: ${generatePassword}
|
||||
app_key: ${generatePassword}
|
||||
|
||||
config:
|
||||
domains:
|
||||
- serviceName: all-in-one
|
||||
port: 80
|
||||
host: ${main_domain}
|
||||
|
||||
env:
|
||||
- DOMAIN=${main_domain}
|
||||
- POSTGRES_DB=hievents
|
||||
- POSTGRES_USER=hievents
|
||||
- POSTGRES_PASSWORD=${postgres_password}
|
||||
- VITE_STRIPE_PUBLISHABLE_KEY=
|
||||
- APP_KEY=${app_key}
|
||||
- JWT_SECRET=${jwt_secret}
|
||||
- MAIL_MAILER=
|
||||
- MAIL_HOST=
|
||||
- MAIL_PORT=
|
||||
- MAIL_FROM_ADDRESS=
|
||||
- MAIL_FROM_NAME=
|
||||
|
||||
mounts: []
|
||||
Reference in New Issue
Block a user