Skip to content

Commit

Permalink
Added GLPI template
Browse files Browse the repository at this point in the history
  • Loading branch information
mohabgabber committed Dec 30, 2024
1 parent 638fbe1 commit d4f8942
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 0 deletions.
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: elestio/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 @@ -1166,4 +1166,19 @@ export const templates: TemplateData[] = [
tags: ["self-hosted", "networking"],
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),
},
];

0 comments on commit d4f8942

Please sign in to comment.