mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
feat: add soketi template
This commit is contained in:
parent
b5e4b9af60
commit
124a884d2e
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,
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user