mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Merge pull request #335 from Vladislav-CS/feat/zipline-template
feat: add Zipline template
This commit is contained in:
BIN
apps/dokploy/public/templates/zipline.png
Normal file
BIN
apps/dokploy/public/templates/zipline.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
@@ -423,6 +423,21 @@ export const templates: TemplateData[] = [
|
|||||||
tags: ["database", "spreadsheet", "low-code", "nocode"],
|
tags: ["database", "spreadsheet", "low-code", "nocode"],
|
||||||
load: () => import("./teable/index").then((m) => m.generate),
|
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",
|
id: "soketi",
|
||||||
name: "Soketi",
|
name: "Soketi",
|
||||||
|
|||||||
37
apps/dokploy/templates/zipline/docker-compose.yml
Normal file
37
apps/dokploy/templates/zipline/docker-compose.yml
Normal file
@@ -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:
|
||||||
32
apps/dokploy/templates/zipline/index.ts
Normal file
32
apps/dokploy/templates/zipline/index.ts
Normal file
@@ -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