Make backup before upgrade and migration from old installation. This image is a secure instalation of GLPI 10+ version. Use the new recomandation to store the data and the config files outside of web folder. The image default instalation install separete GLPI_FILES and GLPI_CONFIG. The image can switch automaticaly from an old structure to a new structure. If you want to keep the files and config folder in glpi webroot folder, remove the GLPI_VAR_DIR and GLPI_CONFIG_DIR environment variables.
Install and run an GLPI 10+ instance with docker
More info in the 📄Docs
| Login/Password | Role |
|---|---|
| glpi/glpi | admin account |
| tech/tech | technical account |
| normal/normal | "normal" account |
| post-only/postonly | post-only account |
version: "3.8"
services:
#MariaDB Container
mariadb:
image: mariadb:10.7
container_name: mariadb
hostname: mariadb
env_file:
- ./mariadb.env
#GLPI Container
glpi:
image: akoscomp/glpi
container_name : glpi
hostname: glpi
ports:
- "80:80"
version: "3.8"
services:
#MariaDB Container
mariadb:
image: mariadb:10.7
container_name: mariadb
hostname: mariadb
environment:
- MARIADB_ROOT_PASSWORD=password
- MARIADB_DATABASE=glpidb
- MARIADB_USER=glpi_user
- MARIADB_PASSWORD=glpi
#GLPI Container
glpi:
image: akoscomp/glpi
container_name : glpi
hostname: glpi
environment:
- VERSION_GLPI=10.0.7
ports:
- "80:80"
To deploy with docker compose, you use docker-compose.yml and mariadb.env file. You can modify mariadb.env to personalize settings like :
MARIADB_ROOT_PASSWORD=diouxx
MARIADB_DATABASE=glpidb
MARIADB_USER=glpi_user
MARIADB_PASSWORD=glpi
version: "3.8"
services:
#MariaDB Container
mariadb:
image: mariadb:10.7
container_name: mariadb
hostname: mariadb
volumes:
- ./mariadb:/var/lib/mysql
env_file:
- ./mariadb.env
restart: always
#GLPI Container
glpi:
image: akoscomp/glpi
container_name : glpi
hostname: glpi
ports:
- "80:80"
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- ./glpi_data:/var/www
environment:
- TIMEZONE=Europe/Brussels
- GLPI_VAR_DIR=/var/www/glpi_files
- GLPI_CONFIG_DIR=/var/www/glpi_config
restart: always
To deploy, just run the following command on the same directory as files
docker compose up -d
If you need to set timezone for Apache and PHP
You can set custom files directory
You can set custom config directory
Can specify specific glpi release. The image can't upgrade the actual version, it works only for new installations.
Content type
Image
Digest
sha256:3378032c3…
Size
143.7 MB
Last updated
over 3 years ago
docker pull akoscomp/glpi