This is a fork of https://github.com/jr0w3/docker-glpi with the following major changes:
- Image is now predictable/repeatable; all software is downloaded and installed during the Docker build, in accordance with Docker development best practices, Best practices for writing Dockerfiles, and The Twelve-Factor App/. Restarting the container, or even recreating the container from the same tag, will not result in any changes to the running software.
- GLPI 10.0.9, latest version
- Volumes for config, data, and logs
- Apache configured for proper root directory
- GLPI
src/Inventory/Inventory.php
patched for some Docker modifications, namely:- Docker containers (virtualmachines) have their
image
field (discarded by GLPI) copied to thecomment
field (kept by GLPI) - Images for running Docker containers are also reported in the Software category, with the "publisher" field set to
docker
- Docker containers (virtualmachines) have their
- NOTE: I am still running
cron
in the same container as Apache. Sorry. - Apache access logs to STDOUT and error logs to STDERR
- Make sure the DB install finishes successfully, via the container logs; it can take quite a bit of time. The last line of container output before starting Apache in the foreground should be
Starting apache...
- Point a browser to the web UI HTTP address for the container. Follow the installation process. Default credentials are username
glpi
and passwordglpi
. - Browse to
/front/inventory.conf.php
, click the checkbox next to "Enable inventory", and save.
-
Maintained by:
jr0w3 -
Where to file issues:
https://github.com/jr0w3/docker-glpi/issues -
Supported architectures:
amd64
-
Current GLPI Version:
10.0.7
Login | Password | Role |
---|---|---|
glpi | glpi | admin account |
tech | tech | technical account |
normal | normal | "normal" account |
post-only | postonly | post-only account |
Know that I have no connection with the team that develops GLPI and/or TecLib. If you encounter a problem with this image , you can create an issue, i will help you with pleasure. If you encounter a problem with GLPI and/or need more information on how it works, I recommend that you read the documentations:
The installation of GLPI is done without SSL. If you need to open access to GLPI from the outside and/or an SSL certificate, I recommend that you use a reverse proxy.
First MariaDB image using:
docker run --name db -e MYSQL_ROOT_PASSWORD=rtpsw -e MYSQL_DATABASE=glpi -e MYSQL_USER=user -e MYSQL_PASSWORD=psw -d mariadb:10.11-rc
Next run GLPI image:
docker run --name glpi --link db:db -p 80:80 -e MYSQL_HOST=db -e MYSQL_DATABASE=glpi -e MYSQL_USER=user -e MYSQL_PASSWORD=psw -d jr0w3/glpi
First MariaDB image using:
docker run --name db -e MYSQL_ROOT_PASSWORD=rtpsw -e MYSQL_DATABASE=glpi -e MYSQL_USER=user -e MYSQL_PASSWORD=psw --volume /var/lib/mysql:/var/lib/mysql -d mariadb:10.11-rc
Next run GLPI image:
docker run --name glpi --link db:db -p 80:80 -e MYSQL_HOST=db -e MYSQL_DATABASE=glpi -e MYSQL_USER=user -e MYSQL_PASSWORD=psw --volume /var/www/html/:/data -d jr0w3/glpi
version: '2'
volumes:
data:
db:
services:
# mariaDB Container
db:
image: mariadb:10.11-rc
restart: always
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
environment:
# It is strongly recommended to change these identifiers by other more secure ones.
# Don't forget to report them in the app service below.
- MYSQL_ROOT_PASSWORD=rtpsw
- MYSQL_PASSWORD=psw
- MYSQL_DATABASE=glpi
- MYSQL_USER=user
#GLPI Container
app:
image: jr0w3/glpi
restart: always
ports:
- 80:80
links:
- db
environment:
- MYSQL_PASSWORD=psw
- MYSQL_DATABASE=glpi
- MYSQL_USER=user
- MYSQL_HOST=db
version: '2'
volumes:
data:
db:
services:
# mariaDB Container
db:
image: mariadb:10.11-rc
restart: always
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- db:/var/lib/mysql
environment:
# It is strongly recommended to change these identifiers by other more secure ones.
# Don't forget to report them in the app service below.
- MYSQL_ROOT_PASSWORD=rtpsw
- MYSQL_PASSWORD=psw
- MYSQL_DATABASE=glpi
- MYSQL_USER=user
#GLPI Container
app:
image: jr0w3/glpi
restart: always
ports:
- 80:80
links:
- db
volumes:
- data:/app/data
environment:
- MYSQL_PASSWORD=psw
- MYSQL_DATABASE=glpi
- MYSQL_USER=user
- MYSQL_HOST=db