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:
16
blueprints/browserless/docker-compose.yml
Normal file
16
blueprints/browserless/docker-compose.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
services:
|
||||
browserless:
|
||||
image: ghcr.io/browserless/chromium:v2.23.0
|
||||
environment:
|
||||
TOKEN: ${BROWSERLESS_TOKEN}
|
||||
expose:
|
||||
- 3000
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- curl
|
||||
- '-f'
|
||||
- 'http://127.0.0.1:3000/docs'
|
||||
interval: 2s
|
||||
timeout: 10s
|
||||
retries: 15
|
||||
28
blueprints/browserless/index.ts
Normal file
28
blueprints/browserless/index.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import {
|
||||
type DomainSchema,
|
||||
type Schema,
|
||||
type Template,
|
||||
generatePassword,
|
||||
generateRandomDomain,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
const mainHost = generateRandomDomain(schema);
|
||||
|
||||
const domains: DomainSchema[] = [
|
||||
{
|
||||
host: mainHost,
|
||||
port: 3000,
|
||||
serviceName: "browserless",
|
||||
},
|
||||
];
|
||||
const envs = [
|
||||
`BROWERLESS_HOST=${mainHost}`,
|
||||
`BROWSERLESS_TOKEN=${generatePassword(16)}`,
|
||||
];
|
||||
|
||||
return {
|
||||
envs,
|
||||
domains,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user