mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Merge pull request #425 from SashaGoncharov19/canary
feat: added gitea template
This commit is contained in:
commit
c152304c15
BIN
apps/dokploy/public/templates/gitea.png
Normal file
BIN
apps/dokploy/public/templates/gitea.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
37
apps/dokploy/templates/gitea/docker-compose.yml
Normal file
37
apps/dokploy/templates/gitea/docker-compose.yml
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
version: "3.8"
|
||||||
|
services:
|
||||||
|
gitea:
|
||||||
|
image: gitea/gitea:1.22.2
|
||||||
|
environment:
|
||||||
|
- USER_UID=${USER_UID}
|
||||||
|
- USER_GID=${USER_GID}
|
||||||
|
- GITEA__database__DB_TYPE=postgres
|
||||||
|
- GITEA__database__HOST=db:5432
|
||||||
|
- GITEA__database__NAME=gitea
|
||||||
|
- GITEA__database__USER=gitea
|
||||||
|
- GITEA__database__PASSWD=gitea
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- dokploy-network
|
||||||
|
volumes:
|
||||||
|
- gitea_server:/data
|
||||||
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
|
||||||
|
db:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER=gitea
|
||||||
|
- POSTGRES_PASSWORD=gitea
|
||||||
|
- POSTGRES_DB=gitea
|
||||||
|
networks:
|
||||||
|
- dokploy-network
|
||||||
|
volumes:
|
||||||
|
- gitea_db:/var/lib/postgresql/data
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
gitea_db:
|
||||||
|
gitea_server:
|
24
apps/dokploy/templates/gitea/index.ts
Normal file
24
apps/dokploy/templates/gitea/index.ts
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
import {
|
||||||
|
type DomainSchema,
|
||||||
|
type Schema,
|
||||||
|
type Template,
|
||||||
|
generateRandomDomain,
|
||||||
|
} from "../utils";
|
||||||
|
|
||||||
|
export function generate(schema: Schema): Template {
|
||||||
|
const mainDomain = generateRandomDomain(schema);
|
||||||
|
|
||||||
|
const domains: DomainSchema[] = [
|
||||||
|
{
|
||||||
|
host: mainDomain,
|
||||||
|
port: 3000,
|
||||||
|
serviceName: "gitea",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
const envs = ["USER_UID=1000", "USER_GID=1000"];
|
||||||
|
|
||||||
|
return {
|
||||||
|
envs,
|
||||||
|
domains,
|
||||||
|
};
|
||||||
|
}
|
@ -482,4 +482,19 @@ export const templates: TemplateData[] = [
|
|||||||
tags: ["chatbot", "builder", "open-source"],
|
tags: ["chatbot", "builder", "open-source"],
|
||||||
load: () => import("./typebot/index").then((m) => m.generate),
|
load: () => import("./typebot/index").then((m) => m.generate),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: "gitea",
|
||||||
|
name: "Gitea",
|
||||||
|
version: "1.22.2",
|
||||||
|
description:
|
||||||
|
"Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD.",
|
||||||
|
logo: "gitea.png",
|
||||||
|
links: {
|
||||||
|
github: "https://github.com/go-gitea/gitea.git",
|
||||||
|
website: "https://gitea.com/",
|
||||||
|
docs: "https://docs.gitea.com/installation/install-with-docker",
|
||||||
|
},
|
||||||
|
tags: ["self-hosted", "storage"],
|
||||||
|
load: () => import("./gitea/index").then((m) => m.generate),
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user