nexiles / docker-glpi

Dockerized GLPI based on php:5-apache official image.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Supported tags and respective Dockerfile links

9.2.1, latest 9.1.5 9.1.3 9.1.2 9.1.1

Introduction

GLPI (formely Gestion Libre de Parc Infortique) is the most free & open source IT asset and service management tool available on the web.

It supports various languages, provides a configuration management database for various devices (CMDB for computer, software, printers, etc.) and enables an online administration interface to manage assets and tickets via a Webrowser.

GLPI can leverage LDAP protocol to manage the access and supports IMAP protocol to let end-users to create issues via email.

Roadmap

  • Implement Crontab for GPLI Scheduler

Description

The Dockerfile builds from "php:5-apache (see https://hub.docker.com/_/php/)

This image does not leverage embedded database

Quick Start

Run a supported database container with persistent storage (i.e. MySQL, MariaDB).

docker volume create "glpi-db"

docker run --name='glpi-md' -d \
--restart=always \
-e MYSQL_DATABASE=glpi \
-e MYSQL_ROOT_PASSWORD=V3rY1ns3cur3P4ssw0rd \
-e MYSQL_USER=glpi \
-e MYSQL_PASSWORD=V3rY1ns3cur3P4ssw0rd \
-v glpi-db:/var/lib/mysql \
-v glpi-dblog:/var/log/mysql \
-v glpi-etc:/etc/mysql \
mariadb

Run the GLPI container exposing internal port 80 with persistent storage for files folder (i.e for Software deployment packages).

docker volume create "glpi-files"

docker run --name='files' -d \
--restart=always \
-p 32706:80 \
-v glpi-files:/var/www/html/files \
--links glpi-md:mysql \
fjudith/glpi

Initial configuration

  1. Start a web browser session to http://ip:port
  2. Select your language, then click OK.
  3. Select I have read and ACCEPT the terms of the license written above. option, then click Continue.
  4. Click on Install.
  5. Review the requirement check-list, then click Continue.
  6. Full-fill the following fields:
  • SQL server (MariaDB or MySQL): mysql
  • Database user: glpi
  • Database password: V3rY1ns3cur3P4ssw0rd
  1. Then click Continue.
  2. Select glpi database, then click Continue.
  3. Confirm that message OK - database was initialized appears, then click Continue.
  4. Click on Use GLPI.
  5. Logon as glpi with password glpi.

Docker-Compose

You can use docker compose to automate the above command if you create a file called docker-compose.yml and put in there the following:

version: '2'
volumes:
  glpi-db:
  glpi-files:
  glpi-plugins:

services:
  glpi-md:
    image: amd64/mariadb:5.5
    environment:
      MYSQL_DATABASE: glpi
      MYSQL_PASSWORD: V3ry1nS3cur3P4ssW0rd
      MYSQL_ROOT_PASSWORD: V3ry1nS3cur34ls0
      MYSQL_USER: glpi
    volumes:
    - glpi-db:/var/lib/mysql
    ports:
    - 32806:3306/tcp
  glpi:
    build: ./
    image: fjudith/glpi:9.2.1-apache
    volumes:
    - glpi-files:/var/www/html/files
    - glpi-plugins:/var/www/html/plugins
    links:
    - glpi-md:mysql
    ports:
    - 32706:80/tcp

And run:

docker-compose up -d

References

About

Dockerized GLPI based on php:5-apache official image.

License:GNU General Public License v3.0


Languages

Language:Shell 100.0%