mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
feat: hi.events template
This commit is contained in:
39
apps/dokploy/public/templates/hi-events.svg
Normal file
39
apps/dokploy/public/templates/hi-events.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 22 KiB |
45
apps/dokploy/templates/hi-events/docker-compose.yml
Normal file
45
apps/dokploy/templates/hi-events/docker-compose.yml
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
services:
|
||||||
|
all-in-one:
|
||||||
|
image: daveearley/hi.events-all-in-one:v0.8.0-beta.1
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
- VITE_FRONTEND_URL=https://${DOMAIN}
|
||||||
|
- APP_FRONTEND_URL=https://${DOMAIN}
|
||||||
|
- VITE_API_URL_CLIENT=https://${DOMAIN}/api
|
||||||
|
- VITE_API_URL_SERVER=http://localhost:80/api
|
||||||
|
- VITE_STRIPE_PUBLISHABLE_KEY
|
||||||
|
- LOG_CHANNEL=stderr
|
||||||
|
- QUEUE_CONNECTION=sync
|
||||||
|
- MAIL_MAILER=array
|
||||||
|
- APP_KEY
|
||||||
|
- JWT_SECRET
|
||||||
|
- FILESYSTEM_PUBLIC_DISK=public
|
||||||
|
- FILESYSTEM_PRIVATE_DISK=local
|
||||||
|
- APP_CDN_URL=https://${DOMAIN}/storage
|
||||||
|
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
|
||||||
|
- MAIL_MAILER
|
||||||
|
- MAIL_HOST
|
||||||
|
- MAIL_PORT
|
||||||
|
- MAIL_FROM_ADDRESS
|
||||||
|
- MAIL_FROM_NAME
|
||||||
|
depends_on:
|
||||||
|
- postgres
|
||||||
|
|
||||||
|
postgres:
|
||||||
|
image: elestio/postgres:16
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- dokploy-network
|
||||||
|
environment:
|
||||||
|
- POSTGRES_DB
|
||||||
|
- POSTGRES_USER
|
||||||
|
- POSTGRES_PASSWORD
|
||||||
|
volumes:
|
||||||
|
- pg_hi-events_data:/var/lib/postgresql/data
|
||||||
|
|
||||||
|
networks:
|
||||||
|
dokploy-network:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
pg_hi-events_data:
|
||||||
41
apps/dokploy/templates/hi-events/index.ts
Normal file
41
apps/dokploy/templates/hi-events/index.ts
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
import {
|
||||||
|
type DomainSchema,
|
||||||
|
type Schema,
|
||||||
|
type Template,
|
||||||
|
generateRandomDomain,
|
||||||
|
} from "../utils";
|
||||||
|
|
||||||
|
export function generate(schema: Schema): Template {
|
||||||
|
const domains: DomainSchema[] = [
|
||||||
|
{
|
||||||
|
host: generateRandomDomain(schema),
|
||||||
|
port: 80,
|
||||||
|
serviceName: "all-in-one",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
const envs = [
|
||||||
|
"# change domain here",
|
||||||
|
"DOMAIN=my-events.com",
|
||||||
|
"",
|
||||||
|
"POSTGRES_DB=hievents",
|
||||||
|
"POSTGRES_USER=hievents",
|
||||||
|
"POSTGRES_PASSWORD=VERY_STRONG_PASSWORD",
|
||||||
|
"",
|
||||||
|
"VITE_STRIPE_PUBLISHABLE_KEY=",
|
||||||
|
"",
|
||||||
|
"APP_KEY=my-app-key",
|
||||||
|
"JWT_SECRET=STRONG_JWT_SECRET",
|
||||||
|
"",
|
||||||
|
"MAIL_MAILER=",
|
||||||
|
"MAIL_HOST=",
|
||||||
|
"MAIL_PORT=",
|
||||||
|
"MAIL_FROM_ADDRESS=",
|
||||||
|
"MAIL_FROM_NAME=",
|
||||||
|
];
|
||||||
|
|
||||||
|
return {
|
||||||
|
domains,
|
||||||
|
envs,
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -616,4 +616,19 @@ export const templates: TemplateData[] = [
|
|||||||
tags: ["open-source"],
|
tags: ["open-source"],
|
||||||
load: () => import("./vaultwarden/index").then((m) => m.generate),
|
load: () => import("./vaultwarden/index").then((m) => m.generate),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: "hi-events",
|
||||||
|
name: "Hi.events",
|
||||||
|
version: "0.8.0-beta.1",
|
||||||
|
description:
|
||||||
|
"Hi.Events is a self-hosted event management and ticket selling platform that allows you to create, manage and promote events easily.",
|
||||||
|
logo: "hi-events.svg",
|
||||||
|
links: {
|
||||||
|
github: "https://github.com/HiEventsDev/hi.events",
|
||||||
|
website: "https://hi.events/",
|
||||||
|
docs: "https://hi.events/docs",
|
||||||
|
},
|
||||||
|
tags: ["self-hosted", "open-source", "manager"],
|
||||||
|
load: () => import("./hi-events/index").then((m) => m.generate),
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user