Sign inSign up

aalbng/glpi

By aalbng

Updated 2 months ago

PHP 8.2 / apache2 OS latest / GLPI 11.0.1 - Install, update and run an GLPI instance with docker.

Image
1

1.3K

aalbng/glpi repository overview

Table of Contents

Introduction

Install, update and run an GLPI instance with docker PHP 8.2 / httpd OS latest / GLPI 10.0.10

Default DB accounts

Login/PasswordDBSQL Server
root/glpiglpimariadb

Default GLPI accounts

More info in the 📄Docs

Login/PasswordRole
glpi/glpiadmin account
tech/techtechnical account
normal/normal"normal" account
post-only/postonlypost-only account

Remove install directory

To remove the banner warning you have to remove the gpli install directory with the following command. (After gplpi setup wizard!)

docker exec -it glpi /removeInstall.sh

Deploy with CLI

Deploy GLPI (quick and dirty)

docker run --name mariadb -e TZ=Europe/Berlin -e MARIADB_ROOT_PASSWORD=glpi -e MARIADB_DATABASE=glpi -d mariadb:11.1.2
docker run --link mariadb:mariadb -e TZ=Europe/Berlin -p 80:80 --name glpi -d aalbng/glpi:latest

Deploy GLPI with external database

docker run -e TZ=Europe/Berlin -p 80:80 --name glpi -d aalbng/glpi:latest

Deploy GLPI with database and persistence data

For an usage on production environnement or daily usage, it's recommanded to use container with volumes to persistent data.

  • First, create MariaDB container with volume
docker run --name mariadb -e TZ=Europe/Berlin -e MARIADB_ROOT_PASSWORD=glpi -e MARIADB_DATABASE=glpi --volume mysql:/var/lib/mysql -d mariadb:11.1.2
  • Then, create GLPI container with volume and link MariaDB container
docker run --link mariadb:mariadb -e TZ=Europe/Berlin -p 80:80 --name glpi --volume glpi:/glpi/www -d aalbng/glpi:latest

Deploy with docker-compose

Deploy without persistence data


services:
#MariaDB Container
  mariadb:
    image: mariadb:11.1.2
    container_name: mariadb
    hostname: mariadb
    environment:
      - TZ=Europe/Berlin
      - MARIADB_ROOT_PASSWORD=glpi
      - MARIADB_DATABASE=glpi

#GLPI Container
  glpi:
    image: aalbng/glpi:latest
    container_name : glpi
    hostname: glpi
    ports:
      - "80:80"
    environment:
      - TZ=Europe/Berlin

Deploy with persistence data


volumes:
  mysql:
  glpi:

services:
#MariaDB Container
  mariadb:
    image: mariadb:11.1.2
    container_name: mariadb
    hostname: mariadb
    volumes:
      - mysql:/var/lib/mysql
    environment:
      - TZ=Europe/Berlin
      - MARIADB_ROOT_PASSWORD=glpi
      - MARIADB_DATABASE=glpi
    restart: always

#GLPI Container
  glpi:
    image: aalbng/glpi:latest
    container_name : glpi
    hostname: glpi
    ports:
      - "80:80"
    volumes:
      - glpi:/glpi/www 
    environment:
      - TZ=Europe/Berlin
    restart: always

To deploy, just run the following command on the same directory as files

docker-compose up -d

Tag summary

Content type

Image

Digest

sha256:e6f09ec2d

Size

147.5 MB

Last updated

2 months ago

docker pull aalbng/glpi