-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
146 additions
and
0 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
import { Output, randomPassword, Services } from "~templates-utils"; | ||
import { Input } from "./meta"; | ||
|
||
export function generate(input: Input): Output { | ||
const services: Services = []; | ||
const redisPassword = randomPassword(); | ||
const databasePassword = randomPassword(); | ||
|
||
services.push({ | ||
type: "app", | ||
data: { | ||
projectName: input.projectName, | ||
serviceName: input.appServiceName, | ||
env: [ | ||
`REDIS_HOST=${input.redisServiceName}`, | ||
`REDIS_PORT=6379`, | ||
`REDIS_DB=1`, | ||
`REDIS_PASSWORD=${redisPassword}`, | ||
`WEBLATE_DEFAULT_FROM_EMAIL=${input.emailNoReply}`, | ||
`WEBLATE_EMAIL_HOST=${input.emailHost}`, | ||
`WEBLATE_EMAIL_HOST_USER=${input.emailUsername}`, | ||
`WEBLATE_EMAIL_HOST_PASSWORD=${input.emailPassword}`, | ||
`WEBLATE_SERVER_EMAIL=${input.emailUsername}`, | ||
`WEBLATE_SITE_DOMAIN=https://$(PRIMARY_DOMAIN)`, | ||
`WEBLATE_ADMIN_PASSWORD=changeme`, | ||
`WEBLATE_ADMIN_EMAIL=changeme@easypanel.io`, | ||
`POSTGRES_PASSWORD=${databasePassword}`, | ||
`POSTGRES_USER=postgres`, | ||
`POSTGRES_DATABASE=$(PROJECT_NAME)`, | ||
`POSTGRES_HOST=$(PROJECT_NAME)_${input.databaseServiceName}`, | ||
`POSTGRES_SSL_MODE=disable`, | ||
].join("\n"), | ||
source: { | ||
type: "image", | ||
image: input.appServiceImage, | ||
}, | ||
domains: [ | ||
{ | ||
host: "$(EASYPANEL_DOMAIN)", | ||
port: 8080, | ||
}, | ||
], | ||
mounts: [ | ||
{ | ||
type: "volume", | ||
name: "data", | ||
mountPath: "/app/data", | ||
}, | ||
{ | ||
type: "volume", | ||
name: "cache", | ||
mountPath: "/app/cache", | ||
}, | ||
], | ||
}, | ||
}); | ||
|
||
services.push({ | ||
type: "redis", | ||
data: { | ||
projectName: input.projectName, | ||
serviceName: input.redisServiceName, | ||
password: redisPassword, | ||
}, | ||
}); | ||
|
||
services.push({ | ||
type: "postgres", | ||
data: { | ||
projectName: input.projectName, | ||
serviceName: input.databaseServiceName, | ||
password: databasePassword, | ||
}, | ||
}); | ||
|
||
return { services }; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Zulip | ||
description: Zulip is a modern, open-source team collaboration platform that redefines the way teams communicate and collaborate. Unlike traditional messaging tools, Zulip organizes conversations into topics, ensuring that important information is easily accessible and discussions remain focused. | ||
instructions: Please use the following credentials to login. changeme@easypanel.io|changeme | ||
changeLog: | ||
- date: 2023-09-21 | ||
description: first release | ||
links: | ||
- label: Website | ||
url: https://zulip.com/ | ||
- label: Documentation | ||
url: https://zulip.com/help/ | ||
- label: Github | ||
url: https://github.com/zulip/zulip/ | ||
contributors: | ||
- name: matbrgz | ||
url: https://github.com/matbrgz | ||
schema: | ||
type: object | ||
required: | ||
- projectName | ||
- appServiceName | ||
- appServiceImage | ||
- databaseServiceName | ||
- redisServiceName | ||
- emailNoReply | ||
- emailHost | ||
- emailUsername | ||
- emailPassword | ||
properties: | ||
projectName: | ||
type: string | ||
title: Project Name | ||
appServiceName: | ||
type: string | ||
title: App Service Name | ||
default: weblate | ||
appServiceImage: | ||
type: string | ||
title: App Service Image | ||
default: weblate/weblate:4.16.2-1 | ||
databaseServiceName: | ||
type: string | ||
title: Database Service Name | ||
default: weblate-db | ||
redisServiceName: | ||
type: string | ||
title: Redis Service Name | ||
default: weblate-redis | ||
emailNoReply: | ||
type: string | ||
title: No Reply Email | ||
emailHost: | ||
type: string | ||
title: Email Host | ||
emailUsername: | ||
type: string | ||
title: Email Username | ||
emailPassword: | ||
type: string | ||
title: Email Password | ||
benefits: | ||
- title: TODO | ||
description: TODO | ||
features: | ||
- title: TODO | ||
description: TODO | ||
tags: | ||
- Chat | ||
- Communication |