Sign inSign up

emadruida/glpi

By emadruida

Updated about 1 year ago

GLPI dockerized

Image
0

2.1K

emadruida/glpi repository overview

GLPI Dockerized

Docker Image CI

Docker container that serves GLPI in its own subdomain on Apache

How to use this image

A sample configuration using compose could be the following docker-compose.yml file:

version: '3.9'

services:
  glpi:
    container_name: glpi
    image: emadruida/glpi
    ports:
      - "80:80"
    volumes:
      - ./glpi/files:/var/www/html/glpi/files
      - ./glpi/config:/var/www/html/glpi/config
      - ./glpi/plugins:/var/www/html/glpi/plugins
      - ./glpi/marketplace:/var/www/html/glpi/marketplace
  
  db:
    image: mysql
    container_name: db
    restart: always
    environment:
      - MYSQL_ROOT_PASSWORD=mysupersecurepassword
      - MYSQL_DATABASE=glpi
    volumes:
      - ./mysql/data:/var/lib/mysql

In the same folder as the docker-compose.yml file, create the following directories:

  • glpi/files
  • glpi/config
  • glpi/plugins
  • glpi/marketplace

For the mysql container, create the mysql/data directory in the same folder where the docker-compose.yml file is located.

Execute docker compose up:

docker compose up -d

In this example we mount as bind volumes the directories used by GLPI both for configuration and user data.

These directories are thus saved between GLPI installations, allowing us to upgrade to newer versions of GLPI without loosing our data.

Tag summary

Content type

Image

Digest

sha256:fa23034e0

Size

261.1 MB

Last updated

about 1 year ago

docker pull emadruida/glpi