# Self-host GLPI

> An IT asset and service management platform with helpdesk ticketing built in.

- Page: https://levelrail.com/templates/glpi/
- JSON: https://levelrail.com/templates/glpi.json
- Category: Applications
- Licence: GPL-3.0-or-later (Copyleft license)
- Source: https://github.com/glpi-project/glpi
- Upstream docs: https://glpi-project.org/documentation/

## Requirements
- Memory: about 512 MiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: 11.0.11

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| glpi | glpi/glpi | 11.0.11 | 80 | glpi_data -> /var/glpi |
| glpi-db | mysql | 8.4 | none | glpi_mysql_data -> /var/lib/mysql |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| glpi | GLPI_DB_HOST | preset |
| glpi | GLPI_DB_NAME | preset |
| glpi | GLPI_DB_PASSWORD | generated |
| glpi | GLPI_DB_USER | preset |
| glpi-db | MYSQL_DATABASE | preset |
| glpi-db | MYSQL_PASSWORD | generated |
| glpi-db | MYSQL_ROOT_PASSWORD | generated |
| glpi-db | MYSQL_USER | preset |

## Deploy

### CLI

```bash
levelrail-cli templates deploy glpi --name my-glpi
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/glpi/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### Can I deploy GLPI on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id glpi for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image glpi/glpi:11.0.11, mysql:8.4 is what you deploy there.

Self-host GLPI, GLPI docker compose file, deploy GLPI on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
