This images contains an instance of GLPI web application served by nginx and php5-fpm on port 80
-
Image variant with nginx and PHP5.6 Dockerfile
nginx-56-9.4.3-latest
,nginx-56-latest
nginx-56-9.3.3-latest
- This image expose the following port
Port | Usage |
---|---|
80/tcp | HTTP web application |
- This image takes theses environnements variables as parameters
Environment | Type | Usage |
---|---|---|
TZ | String | Contains the timezone |
GLPI_REMOVE_INSTALLER | Boolean (yes/no) | Set to yes if it's not the first installation of glpi |
GLPI_CHMOD_PATHS_FILES | Boolean (yes/no) | Set to yes to apply chmod/chown on /var/www/files (useful for host mount) |
GLPI_INSTALL_PLUGINS | String | Comma separated list of plugins to install (see below) |
The GLPI_INSTALL_PLUGINS variable must contains the list of plugins to install (download and extract) before starting glpi. This environment variable is a comma separated list of plugins definitions. Each plugin definition must be like this "PLUGINNAME|URL". The PLUGINNAME is the name of the first folder in plugin archive and will be the glpi's name of the plugin. The URL is the full URL from which to download the plugin. This url can contains some compressed file extensions, in some case the installer script will not be able to extract it, so you can create an issue with specifying the unhandled file extension. These two items are separated by a pipe symbol.
To summurize, the GLPI_INSTALL_PLUGINS variable must follow the following skeleton GLPI_INSTALL_PLUGINS="name1|url1,name2|url2" For better example see at the end of this file.
- The following volume is exposed by this image
Volume | Usage |
---|---|
/var/www/files | The data path of GLPI |
/var/www/config | The configuration path of GLPI |
- Normalize log output
- Propose splitted nginx/fpm images
- Add prometheus exporter
docker pull turgon37/glpi:nginx-56-latest
The first time you run this image, set the GLPI_REMOVE_INSTALLER variable to 'no', then after this first installation set it to 'yes' to remove the installer.
docker run --name glpi --publish 8000:80 --volume data-glpi:/var/www/files --volume data-glpi-config:/var/www/config turgon37/glpi:nginx-56-latest
docker network create glpi-network
docker run --name mysql -d --net glpi-network -e MYSQL_DATABASE=glpi -e MYSQL_USER=glpi -e MYSQL_PASSWORD=glpi -e MYSQL_ROOT_PASSWORD=root_password mysql
docker run --name glpi --publish 8000:80 --volume data-glpi:/var/www/files --volume data-glpi-config:/var/www/config --net glpi-network turgon37/glpi:nginx-56-latest
- Production configuration with already installed GLPI with FusionInventory and dashboard plugin :
services:
glpi:
image: turgon37/glpi:nginx-56-latest
environment:
GLPI_REMOVE_INSTALLER: 'no'
GLPI_INSTALL_PLUGINS: 'fusioninventory|https://github.com/fusioninventory/fusioninventory-for-glpi/releases/download/glpi9.2%2B1.0/glpi-fusioninventory-9.2.1.0.tar.bz2'
ports:
- 80
volumes:
- data-glpi-files:/var/www/files
- data-glpi-config:/var/www/config
db:
image: mysql
restart: always
command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8
environment:
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306
volumes:
data-glpi-files:
data-glpi-config: