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

Added GLPI template #1039

Merged
merged 3 commits into from
Jan 5, 2025
Merged
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
Binary file added apps/dokploy/public/templates/glpi.webp
Binary file not shown.
28 changes: 28 additions & 0 deletions apps/dokploy/templates/glpi/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
services:
glpi-mysql:
image: mysql:9.1.0
restart: always
volumes:
- glpi-mysql-data:/var/lib/mysql
networks:
- dokploy-network

glpi-web:
image: elestio/glpi:10.0.16
restart: always
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- glpi-www-data:/var/www/html/glpi
environment:
- TIMEZONE=Europe/Brussels
networks:
- dokploy-network

volumes:
glpi-mysql-data:
glpi-www-data:

networks:
dokploy-network:
external: true
20 changes: 20 additions & 0 deletions apps/dokploy/templates/glpi/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 randomDomain = generateRandomDomain(schema);
const domains: DomainSchema[] = [
{
host: randomDomain,
port: 80,
serviceName: "glpi-web",
},
];
return {
domains,
};
}
15 changes: 15 additions & 0 deletions apps/dokploy/templates/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1167,6 +1167,21 @@ export const templates: TemplateData[] = [
load: () => import("./unifi/index").then((m) => m.generate),
},
{
id: "glpi",
name: "GLPI Project",
version: "10.0.16",
description:
"The most complete open source service management software",
logo: "glpi.webp",
links: {
github: "https://github.com/glpi-project/glpi",
website: "https://glpi-project.org/",
docs: "https://glpi-project.org/documentation/",
},
tags: ["self-hosted", "project-management", "management"],
load: () => import("./glpi/index").then((m) => m.generate),
},
{
id: "checkmate",
name: "Checkmate",
version: "2.0.1",
Expand Down
Loading