mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Merge pull request #364 from Dokploy/354-support-soketi
feat: add soketi template
This commit is contained in:
BIN
apps/dokploy/public/templates/soketi.png
Normal file
BIN
apps/dokploy/public/templates/soketi.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
12
apps/dokploy/templates/soketi/docker-compose.yml
Normal file
12
apps/dokploy/templates/soketi/docker-compose.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
soketi:
|
||||
image: quay.io/soketi/soketi:1.4-16-debian
|
||||
container_name: soketi
|
||||
environment:
|
||||
SOKETI_DEBUG: "1"
|
||||
SOKETI_HOST: "0.0.0.0"
|
||||
SOKETI_PORT: "6001"
|
||||
SOKETI_METRICS_SERVER_PORT: "9601"
|
||||
restart: unless-stopped
|
||||
28
apps/dokploy/templates/soketi/index.ts
Normal file
28
apps/dokploy/templates/soketi/index.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import {
|
||||
type DomainSchema,
|
||||
type Schema,
|
||||
type Template,
|
||||
generateRandomDomain,
|
||||
} from "../utils";
|
||||
|
||||
export function generate(schema: Schema): Template {
|
||||
const mainDomain = generateRandomDomain(schema);
|
||||
const metricsDomain = generateRandomDomain(schema);
|
||||
|
||||
const domains: DomainSchema[] = [
|
||||
{
|
||||
host: mainDomain,
|
||||
port: 6001,
|
||||
serviceName: "soketi",
|
||||
},
|
||||
{
|
||||
host: metricsDomain,
|
||||
port: 9601,
|
||||
serviceName: "soketi",
|
||||
},
|
||||
];
|
||||
|
||||
return {
|
||||
domains,
|
||||
};
|
||||
}
|
||||
@@ -408,4 +408,19 @@ export const templates: TemplateData[] = [
|
||||
tags: ["database", "spreadsheet", "low-code", "nocode"],
|
||||
load: () => import("./teable/index").then((m) => m.generate),
|
||||
},
|
||||
{
|
||||
id: "soketi",
|
||||
name: "Soketi",
|
||||
version: "v1.4-16",
|
||||
description:
|
||||
"Soketi is your simple, fast, and resilient open-source WebSockets server.",
|
||||
logo: "soketi.png",
|
||||
links: {
|
||||
github: "https://github.com/soketi/soketi",
|
||||
website: "https://soketi.app/",
|
||||
docs: "https://docs.soketi.app/",
|
||||
},
|
||||
tags: ["chat"],
|
||||
load: () => import("./soketi/index").then((m) => m.generate),
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user