Project to deploy GLPI with docker
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Go to file
Antoine Guyon a97cce8b3c
Update glpi-install.sh
5 years ago
.github/workflows Update docker.yml 5 years ago
.gitignore add .gitignore file 8 years ago
Dockerfile Update Dockerfile 5 years ago
README.md Update README.md 5 years ago
docker-compose.yml Update docker-compose.yml 5 years ago
glpi-install.sh Update glpi-install.sh 5 years ago
glpi-start.sh Update glpi-start.sh 5 years ago
mariadb.env Rename mysql.env to mariadb.env 5 years ago

README.md

Project to deploy GLPI with docker

Docker Pulls Docker Stars

Introduction

Install and run an GLPI instance with docker.

Deploy a specific release of GLPI

Default, docker run will use the latest release of GLPI. For an usage on production environnement, it's recommanded to set specific release. Here an example for release 9.1.6 :

docker run --name glpi -p 80:80 --env "VERSION_GLPI=9.1.6" -d aguyonnet/glpi

Deploy with docker-compose

Deploy without persistence data ( for quickly test )

version: "3.2"

services:
#mariadb Container
  mariadb:
    image: mariadb:latest
    container_name: mariadb
    hostname: mariadb
    environment:
      - mariadb_ROOT_PASSWORD=password
      - mariadb_DATABASE=glpidb
      - mariadb_USER=glpi_user
      - mariadb_PASSWORD=glpi

#GLPI Container
  glpi:
    image: aguyonnet/glpi
    container_name : glpi
    hostname: glpi
    ports:
      - "80:80"

Deploy with persistence data

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
  • GLPI database
  • GLPI user database
  • GLPI user password

mariadb.env

mariadb_ROOT_PASSWORD=aguyonnet
mariadb_DATABASE=glpidb
mariadb_USER=glpi_user
mariadb_PASSWORD=glpi

docker-compose .yml

version: "3.2"

services:
#mariadb Container
  mariadb:
    image: mariadb:latest
    container_name: mariadb-glpi
    hostname: mariadb
    volumes:
      - /var/lib/mysql:/var/lib/mysql
    env_file:
      - ./mariadb.env
    restart: always

#GLPI Container
  glpi:
    image: aguyonnet/glpi
    container_name : glpi
    hostname: glpi
    ports:
      - "80:80"
    volumes:
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
      - /var/www/html/glpi/:/var/www/html/glpi
    environment:
      - TIMEZONE=Europe/Paris
    restart: always

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

docker-compose up -d

Environnment variables

TIMEZONE

If you need to set timezone for Apache and PHP

From commande line

docker run --name glpi -p 80:80 --env "TIMEZONE=Europe/Paris" -d aguyonnet/glpi

From docker-compose

Modify this settings

environment:
     TIMEZONE=Europe/Paris