mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e88cd11041 | ||
|
|
194e39fa51 | ||
|
|
1bec376f6d | ||
|
|
9766e590b0 | ||
|
|
685a825881 | ||
|
|
c152304c15 | ||
|
|
b50c5c1363 |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dokploy",
|
"name": "dokploy",
|
||||||
"version": "v0.8.0",
|
"version": "v0.8.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
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 |
@@ -174,11 +174,11 @@ export const deployCompose = async ({
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
if (compose.sourceType === "github") {
|
if (compose.sourceType === "github") {
|
||||||
await cloneGithubRepository(compose, deployment.logPath);
|
await cloneGithubRepository(compose, deployment.logPath, true);
|
||||||
} else if (compose.sourceType === "gitlab") {
|
} else if (compose.sourceType === "gitlab") {
|
||||||
await cloneGitlabRepository(compose, deployment.logPath);
|
await cloneGitlabRepository(compose, deployment.logPath, true);
|
||||||
} else if (compose.sourceType === "bitbucket") {
|
} else if (compose.sourceType === "bitbucket") {
|
||||||
await cloneBitbucketRepository(compose, deployment.logPath);
|
await cloneBitbucketRepository(compose, deployment.logPath, true);
|
||||||
} else if (compose.sourceType === "git") {
|
} else if (compose.sourceType === "git") {
|
||||||
await cloneGitRepository(compose, deployment.logPath, true);
|
await cloneGitRepository(compose, deployment.logPath, true);
|
||||||
} else if (compose.sourceType === "raw") {
|
} else if (compose.sourceType === "raw") {
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ export function parseRawConfig(
|
|||||||
status.some((range) => isStatusInRange(log.DownstreamStatus, range)),
|
status.some((range) => isStatusInRange(log.DownstreamStatus, range)),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
const totalCount = parsedLogs.length;
|
||||||
|
|
||||||
if (sort) {
|
if (sort) {
|
||||||
parsedLogs = _.orderBy(
|
parsedLogs = _.orderBy(
|
||||||
@@ -94,8 +95,6 @@ export function parseRawConfig(
|
|||||||
parsedLogs = parsedLogs.slice(startIndex, startIndex + page.pageSize);
|
parsedLogs = parsedLogs.slice(startIndex, startIndex + page.pageSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
const totalCount = parsedLogs.length;
|
|
||||||
|
|
||||||
return { data: parsedLogs, totalCount };
|
return { data: parsedLogs, totalCount };
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error parsing rawConfig:", error);
|
console.error("Error parsing rawConfig:", error);
|
||||||
|
|||||||
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),
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user