Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(template): added it-tools #1123

Open
wants to merge 1 commit into
base: canary
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions apps/dokploy/public/templates/it-tools.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions apps/dokploy/templates/it-tools/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
services:
it-tools:
image: corentinth/it-tools:latest
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:80"]
interval: 30s
timeout: 10s
retries: 3
20 changes: 20 additions & 0 deletions apps/dokploy/templates/it-tools/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
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: "it-tools",
},
];

return {
domains,
};
}
13 changes: 13 additions & 0 deletions apps/dokploy/templates/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1270,4 +1270,17 @@ export const templates: TemplateData[] = [
tags: ["cloud", "networking", "security", "tunnel"],
load: () => import("./cloudflared/index").then((m) => m.generate),
},
{
id: "it-tools",
name: "IT Tools",
version: "latest",
description: "A collection of handy online it-tools for developers.",
logo: "it-tools.svg",
links: {
github: "https://github.com/CorentinTh/it-tools",
website: "https://it-tools.tech",
},
tags: ["developer", "tools"],
load: () => import("./it-tools/index").then((m) => m.generate),
},
];
Loading