10000 GitHub - junkun/docker-glpi: Project to deploy GLPI with docker
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Project to deploy GLPI with docker

Notifications You must be signed in to change notification settings

junkun/docker-glpi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project to deploy GLPI with docker

Table of Contents

  1. Introduction
  2. Deploy CLI
  3. Deploy docker-compose
  4. Environnment variables

Introduction

Install and run an GLPI instance with docker.

Deploy with CLI

Deploy GLPI without database

docker run --name glpi -p 80:80 -d diouxx/glpi

Deploy GLPI with existing database

docker run --name glpi --link yourdatabase:mysql -p 80:80 -d diouxx/glpi

Deploy GLPI with database and persistance container data

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

  • First, create data container
docker create --name glpi-data --volume /var/www/html/glpi:/var/www/html/glpi busybox /bin/true
  • Then, you link your data container with GLPI container
docker run --name glpi --hostname glpi --link mysql:mysql --volumes-from glpi-data -p 80:80 -d diouxx/glpi

Enjoy :)

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 use the latest release. Here an example for release 9.1.6 :

docker run --name glpi --hostname glpi --link mysql:mysql --volumes-from glpi-data -p 80:80 --env "VERSION_GLPI=9.1.6" -d diouxx/glpi

Deploy with docker-compose

To deploy with docker compose, you use docker-compose.yml and mysql.env file. You can modify mysql.env to personalize settings like :

  • MySQL root password
  • GLPI database
  • GLPI user database
  • GLPI user password

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 --hostname glpi --link mysql:mysql --volumes-from glpi-data -p 80:80 --env "TIMEZONE=Europe/Brussels" -d diouxx/glpi

From docker-compose

Modify this settings

environment:
     TIMEZONE=Europe/Brussels

About

Project to deploy GLPI with docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 74.7%
  • Dockerfile 25.3%
0