feat: hi.events template

This commit is contained in:
sashagoncharov19
2024-10-27 20:49:29 +00:00
parent 527c01e7dc
commit bbef99c3c2
4 changed files with 140 additions and 0 deletions

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 22 KiB

View 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:

View 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,
};
}

View File

@@ -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),
},
]; ];