mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-18 09:55:19 +00:00
Merge branch 'canary' into feat/requests
This commit is contained in:
@@ -18,7 +18,7 @@ services:
|
||||
start_period: 10s
|
||||
|
||||
documenso:
|
||||
image: documenso/documenso:1.5.6-rc.2
|
||||
image: documenso/documenso:v1.5.6-rc.2
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
|
||||
@@ -423,6 +423,21 @@ export const templates: TemplateData[] = [
|
||||
tags: ["database", "spreadsheet", "low-code", "nocode"],
|
||||
load: () => import("./teable/index").then((m) => m.generate),
|
||||
},
|
||||
{
|
||||
id: "zipline",
|
||||
name: "Zipline",
|
||||
version: "v3.7.9",
|
||||
description:
|
||||
"A ShareX/file upload server that is easy to use, packed with features, and with an easy setup!",
|
||||
logo: "zipline.png",
|
||||
links: {
|
||||
github: "https://github.com/diced/zipline",
|
||||
website: "https://zipline.diced.sh/",
|
||||
docs: "https://zipline.diced.sh/docs/",
|
||||
},
|
||||
tags: ["media system", "storage"],
|
||||
load: () => import("./zipline/index").then((m) => m.generate),
|
||||
},
|
||||
{
|
||||
id: "soketi",
|
||||
name: "Soketi",
|
||||
@@ -453,4 +468,18 @@ export const templates: TemplateData[] = [
|
||||
tags: ["analytics", "self-hosted"],
|
||||
load: () => import("./aptabase/index").then((m) => m.generate),
|
||||
},
|
||||
{
|
||||
id: "typebot",
|
||||
name: "Typebot",
|
||||
version: "2.27.0",
|
||||
description: "Typebot is an open-source chatbot builder platform.",
|
||||
logo: "typebot.svg",
|
||||
links: {
|
||||
github: "https://github.com/baptisteArno/typebot.io",
|
||||
website: "https://typebot.io/",
|
||||
docs: "https://docs.typebot.io/get-started/introduction",
|
||||
},
|
||||
tags: ["chatbot", "builder", "open-source"],
|
||||
load: () => import("./typebot/index").then((m) => m.generate),
|
||||
},
|
||||
];
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
version: '3.3'
|
||||
|
||||
volumes:
|
||||
db-data:
|
||||
|
||||
services:
|
||||
typebot-db:
|
||||
image: postgres:14-alpine
|
||||
restart: always
|
||||
volumes:
|
||||
- db-data:/var/lib/postgresql/data
|
||||
environment:
|
||||
POSTGRES_USER: typebot
|
||||
POSTGRES_DB: typebot
|
||||
POSTGRES_PASSWORD: typebot
|
||||
networks:
|
||||
- dokploy-network
|
||||
|
||||
typebot-builder:
|
||||
image: baptistearno/typebot-builder:2.27
|
||||
restart: always
|
||||
depends_on:
|
||||
- typebot-db
|
||||
environment:
|
||||
ENCRYPTION_SECRET: '${ENCRYPTION_SECRET}'
|
||||
DATABASE_URL: 'postgresql://typebot:typebot@typebot-db:5432/typebot'
|
||||
NEXTAUTH_URL: '${NEXTAUTH_URL}'
|
||||
NEXT_PUBLIC_VIEWER_URL: '${NEXT_PUBLIC_VIEWER_URL}'
|
||||
ADMIN_EMAIL: '${ADMIN_EMAIL}'
|
||||
SMTP_HOST: '${SMTP_HOST}'
|
||||
NEXT_PUBLIC_SMTP_FROM: '${NEXT_PUBLIC_SMTP_FROM}'
|
||||
SMTP_USERNAME: '${SMTP_USERNAME}'
|
||||
SMTP_PASSWORD: '${SMTP_PASSWORD}'
|
||||
DEFAULT_WORKSPACE_PLAN: '${DEFAULT_WORKSPACE_PLAN}'
|
||||
|
||||
typebot-viewer:
|
||||
image: baptistearno/typebot-viewer:2.27.0
|
||||
restart: always
|
||||
environment:
|
||||
ENCRYPTION_SECRET: '${ENCRYPTION_SECRET}'
|
||||
DATABASE_URL: postgresql://typebot:typebot@typebot-db:5432/typebot
|
||||
NEXTAUTH_URL: '${NEXTAUTH_URL}'
|
||||
NEXT_PUBLIC_VIEWER_URL: '${NEXT_PUBLIC_VIEWER_URL}'
|
||||
ADMIN_EMAIL: '${ADMIN_EMAIL}'
|
||||
SMTP_HOST: '${SMTP_HOST}'
|
||||
NEXT_PUBLIC_SMTP_FROM: '${NEXT_PUBLIC_SMTP_FROM}'
|
||||
SMTP_USERNAME: '${SMTP_USERNAME}'
|
||||
SMTP_PASSWORD: '${SMTP_PASSWORD}'
|
||||
DEFAULT_WORKSPACE_PLAN: '${DEFAULT_WORKSPACE_PLAN}'
|
||||
@@ -0,0 +1,44 @@
|
||||
import {
|
||||
type DomainSchema,
|
||||
type Schema,
|
||||
type Template,
|
||||
generateBase64,
|
||||
generateRandomDomain,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
const builderDomain = generateRandomDomain(schema);
|
||||
const viewerDomain = generateRandomDomain(schema);
|
||||
const encryptionSecret = generateBase64(24);
|
||||
|
||||
const domains: DomainSchema[] = [
|
||||
{
|
||||
host: builderDomain,
|
||||
port: 3000,
|
||||
serviceName: "typebot-builder",
|
||||
},
|
||||
{
|
||||
host: viewerDomain,
|
||||
port: 3000,
|
||||
serviceName: "typebot-viewer",
|
||||
},
|
||||
];
|
||||
|
||||
const envs = [
|
||||
`ENCRYPTION_SECRET=${encryptionSecret}`,
|
||||
`NEXTAUTH_URL=http://${builderDomain}`,
|
||||
`NEXT_PUBLIC_VIEWER_URL=http://${viewerDomain}`,
|
||||
"[email protected]",
|
||||
"SMTP_HOST='Fill'",
|
||||
"SMTP_PORT=25",
|
||||
"SMTP_USERNAME='Fill'",
|
||||
"SMTP_PASSWORD='Fill'",
|
||||
"[email protected]",
|
||||
"DEFAULT_WORKSPACE_PLAN=UNLIMITED",
|
||||
];
|
||||
|
||||
return {
|
||||
envs,
|
||||
domains,
|
||||
};
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
services:
|
||||
umami:
|
||||
image: ghcr.io/umami-software/umami:postgresql-v2.12.1
|
||||
image: ghcr.io/umami-software/umami:postgresql-v2.13.2
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl http://localhost:3000/api/heartbeat"]
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
version: "3"
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:15
|
||||
networks:
|
||||
- dokploy-network
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- POSTGRES_USER=postgres
|
||||
- POSTGRES_PASSWORD=postgres
|
||||
- POSTGRES_DATABASE=postgres
|
||||
volumes:
|
||||
- pg_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
zipline:
|
||||
image: ghcr.io/diced/zipline:3.7.9
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- CORE_RETURN_HTTPS=${ZIPLINE_RETURN_HTTPS}
|
||||
- CORE_SECRET=${ZIPLINE_SECRET}
|
||||
- CORE_HOST=0.0.0.0
|
||||
- CORE_PORT=${ZIPLINE_PORT}
|
||||
- CORE_DATABASE_URL=postgres://postgres:postgres@postgres/postgres
|
||||
- CORE_LOGGER=${ZIPLINE_LOGGER}
|
||||
volumes:
|
||||
- "../files/uploads:/zipline/uploads"
|
||||
- "../files/public:/zipline/public"
|
||||
depends_on:
|
||||
- "postgres"
|
||||
|
||||
volumes:
|
||||
pg_data:
|
||||
@@ -0,0 +1,32 @@
|
||||
import {
|
||||
type DomainSchema,
|
||||
type Schema,
|
||||
type Template,
|
||||
generateBase64,
|
||||
generateRandomDomain,
|
||||
} from "@/templates/utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
const randomDomain = generateRandomDomain(schema);
|
||||
const secretBase = generateBase64(64);
|
||||
|
||||
const domains: DomainSchema[] = [
|
||||
{
|
||||
host: randomDomain,
|
||||
port: 3000,
|
||||
serviceName: "zipline",
|
||||
},
|
||||
];
|
||||
|
||||
const envs = [
|
||||
"ZIPLINE_PORT=3000",
|
||||
`ZIPLINE_SECRET=${secretBase}`,
|
||||
"ZIPLINE_RETURN_HTTPS=false",
|
||||
"ZIPLINE_LOGGER=true",
|
||||
];
|
||||
|
||||
return {
|
||||
envs,
|
||||
domains,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user