This repository provides a Docker Compose configuration to run GLPI (IT and Asset Management software) along with a MariaDB database.
Before you begin, ensure you have the following installed on your machine:
-
Clone this repository:
git clone https://github.com/jr0w3/docker-glpi.git cd docker-glpi
-
Edit the .env file:
nano .env
Update the file with your preferred settings, especially the following variables:
- 'MYSQL_ROOT_PASSWORD'
- 'MYSQL_PASSWORD'
- 'MYSQL_DATABASE'
- 'MYSQL_USER'
- Start the services:
docker-compose up -d
- Access GLPI in your browser at http://localhost:80. The default login credentials are: Username: glpi Password: glpi
The MariaDB container is pre-configured with the following environment variables:
- 'MYSQL_ROOT_PASSWORD': Root password for MariaDB.
- 'MYSQL_PASSWORD': Password for the GLPI database user.
- 'MYSQL_DATABASE': Name of the GLPI database.
- 'MYSQL_USER': GLPI database user.
The GLPI container is configured using the following environment variables:
- 'MYSQL_PASSWORD': Password for the GLPI database user.
- 'MYSQL_DATABASE': Name of the GLPI database.
- 'MYSQL_USER': GLPI database user.
- 'MYSQL_HOST': Hostname of the MariaDB container.
Both MariaDB and GLPI containers have health checks configured to ensure their proper functioning.
If you encounter any issues or have questions, please check the issues section of the original repository.
It is recommended to change the default credentials in the .env file for security reasons.