mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
feat: Add numerous new blueprint templates for various applications
This commit is contained in:
18
blueprints/gotenberg/docker-compose.yml
Normal file
18
blueprints/gotenberg/docker-compose.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
services:
|
||||
gotenberg:
|
||||
image: gotenberg/gotenberg:latest
|
||||
environment:
|
||||
# NOTE: requires the --api-enable-basic-auth option in "command"
|
||||
# make sure to also change the credentials in Dokploy environment
|
||||
GOTENBERG_API_BASIC_AUTH_USERNAME: ${GOTENBERG_API_BASIC_AUTH_USERNAME}
|
||||
GOTENBERG_API_BASIC_AUTH_PASSWORD: ${GOTENBERG_API_BASIC_AUTH_PASSWORD}
|
||||
command: [
|
||||
"gotenberg",
|
||||
# See the full list of options at https://gotenberg.dev/docs/configuration
|
||||
|
||||
# Examples:
|
||||
"--api-enable-basic-auth"
|
||||
#"--api-timeout=60s",
|
||||
#"--chromium-auto-start"
|
||||
]
|
||||
restart: unless-stopped
|
||||
29
blueprints/gotenberg/index.ts
Normal file
29
blueprints/gotenberg/index.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
import {
|
||||
type DomainSchema,
|
||||
type Schema,
|
||||
type Template,
|
||||
generateRandomDomain,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
const username = "gotenberg";
|
||||
const password = "changethis";
|
||||
|
||||
const domains: DomainSchema[] = [
|
||||
{
|
||||
host: generateRandomDomain(schema),
|
||||
port: 3000,
|
||||
serviceName: "gotenberg",
|
||||
},
|
||||
];
|
||||
|
||||
const envs = [
|
||||
`GOTENBERG_API_BASIC_AUTH_USERNAME=${username}`,
|
||||
`GOTENBERG_API_BASIC_AUTH_PASSWORD=${password}`,
|
||||
];
|
||||
|
||||
return {
|
||||
envs,
|
||||
domains,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user