{"id":13631991,"url":"https://github.com/DiouxX/docker-glpi","last_synced_at":"2025-04-18T01:32:18.336Z","repository":{"id":41519379,"uuid":"64950624","full_name":"DiouxX/docker-glpi","owner":"DiouxX","description":"Project to deploy GLPI with docker","archived":false,"fork":false,"pushed_at":"2024-07-16T12:16:03.000Z","size":66,"stargazers_count":216,"open_issues_count":24,"forks_count":185,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-08-01T22:51:16.254Z","etag":null,"topics":["docker","glpi"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DiouxX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-04T16:33:41.000Z","updated_at":"2024-08-01T16:58:46.000Z","dependencies_parsed_at":"2023-02-12T15:30:50.412Z","dependency_job_id":"181f190a-af4c-4a59-b63f-2e9733345680","html_url":"https://github.com/DiouxX/docker-glpi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiouxX%2Fdocker-glpi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiouxX%2Fdocker-glpi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiouxX%2Fdocker-glpi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiouxX%2Fdocker-glpi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DiouxX","download_url":"https://codeload.github.com/DiouxX/docker-glpi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223772118,"owners_count":17199968,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","glpi"],"created_at":"2024-08-01T22:02:47.403Z","updated_at":"2024-11-09T00:30:30.458Z","avatar_url":"https://github.com/DiouxX.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# Project to deploy GLPI with docker\n\n![Docker Pulls](https://img.shields.io/docker/pulls/diouxx/glpi) ![Docker Stars](https://img.shields.io/docker/stars/diouxx/glpi) [![](https://images.microbadger.com/badges/image/diouxx/glpi.svg)](http://microbadger.com/images/diouxx/glpi \"Get your own image badge on microbadger.com\") ![Docker Cloud Automated build](https://img.shields.io/docker/cloud/automated/diouxx/glpi)\n\n# Table of Contents\n- [Project to deploy GLPI with docker](#project-to-deploy-glpi-with-docker)\n- [Table of Contents](#table-of-contents)\n- [Introduction](#introduction)\n  - [Default accounts](#default-accounts)\n- [Deploy with CLI](#deploy-with-cli)\n  - [Deploy GLPI](#deploy-glpi)\n  - [Deploy GLPI with existing database](#deploy-glpi-with-existing-database)\n  - [Deploy GLPI with database and persistence data](#deploy-glpi-with-database-and-persistence-data)\n  - [Deploy a specific release of GLPI](#deploy-a-specific-release-of-glpi)\n- [Deploy with docker-compose](#deploy-with-docker-compose)\n  - [Deploy without persistence data ( for quickly test )](#deploy-without-persistence-data--for-quickly-test-)\n  - [Deploy a specific release](#deploy-a-specific-release)\n  - [Deploy with persistence data](#deploy-with-persistence-data)\n    - [mariadb.env](#mariadbenv)\n    - [docker-compose .yml](#docker-compose-yml)\n- [Environnment variables](#environnment-variables)\n  - [TIMEZONE](#timezone)\n\n# Introduction\n\nInstall and run an GLPI instance with docker\n\n## Default accounts\n\nMore info in the 📄[Docs](https://glpi-install.readthedocs.io/en/latest/install/wizard.html#end-of-installation)\n\n| Login/Password     \t| Role              \t|\n|--------------------\t|-------------------\t|\n| glpi/glpi          \t| admin account     \t|\n| tech/tech          \t| technical account \t|\n| normal/normal      \t| \"normal\" account  \t|\n| post-only/postonly \t| post-only account \t|\n\n# Deploy with CLI\n\n## Deploy GLPI \n```sh\ndocker run --name mariadb -e MARIADB_ROOT_PASSWORD=diouxx -e MARIADB_DATABASE=glpidb -e MARIADB_USER=glpi_user -e MARIADB_PASSWORD=glpi -d mariadb:10.7\ndocker run --name glpi --link mariadb:mariadb -p 80:80 -d diouxx/glpi\n```\n\n## Deploy GLPI with existing database\n```sh\ndocker run --name glpi --link yourdatabase:mariadb -p 80:80 -d diouxx/glpi\n```\n\n## Deploy GLPI with database and persistence data\n\nFor an usage on production environnement or daily usage, it's recommanded to use container with volumes to persistent data.\n\n* First, create MariaDB container with volume\n\n```sh\ndocker run --name mariadb -e MARIADB_ROOT_PASSWORD=diouxx -e MARIADB_DATABASE=glpidb -e MARIADB_USER=glpi_user -e MARIADB_PASSWORD=glpi --volume /var/lib/mysql:/var/lib/mysql -d mariadb:10.7\n```\n\n* Then, create GLPI container with volume and link MariaDB container\n\n```sh\ndocker run --name glpi --link mariadb:mariadb --volume /var/www/html/glpi:/var/www/html/glpi -p 80:80 -d diouxx/glpi\n```\n\nEnjoy :)\n\n## Deploy a specific release of GLPI\nDefault, docker run will use the latest release of GLPI.\nFor an usage on production environnement, it's recommanded to set specific release.\nHere an example for release 9.1.6 :\n```sh\ndocker run --name glpi --hostname glpi --link mariadb:mariadb --volume /var/www/html/glpi:/var/www/html/glpi -p 80:80 --env \"VERSION_GLPI=9.1.6\" -d diouxx/glpi\n```\n\n# Deploy with docker-compose\n\n## Deploy without persistence data ( for quickly test )\n```yaml\nversion: \"3.8\"\n\nservices:\n#MariaDB Container\n  mariadb:\n    image: mariadb:10.7\n    container_name: mariadb\n    hostname: mariadb\n    environment:\n      - MARIADB_ROOT_PASSWORD=password\n      - MARIADB_DATABASE=glpidb\n      - MARIADB_USER=glpi_user\n      - MARIADB_PASSWORD=glpi\n\n#GLPI Container\n  glpi:\n    image: diouxx/glpi\n    container_name : glpi\n    hostname: glpi\n    ports:\n      - \"80:80\"\n```\n\n## Deploy a specific release\n\n```yaml\nversion: \"3.8\"\n\nservices:\n#MariaDB Container\n  mariadb:\n    image: mariadb:10.7\n    container_name: mariadb\n    hostname: mariadb\n    environment:\n      - MARIADB_ROOT_PASSWORD=password\n      - MARIADB_DATABASE=glpidb\n      - MARIADB_USER=glpi_user\n      - MARIADB_PASSWORD=glpi\n\n#GLPI Container\n  glpi:\n    image: diouxx/glpi\n    container_name : glpi\n    hostname: glpi\n    environment:\n      - VERSION_GLPI=9.5.6\n    ports:\n      - \"80:80\"\n```\n\n## Deploy with persistence data\n\nTo deploy with docker compose, you use *docker-compose.yml* and *mariadb.env* file.\nYou can modify **_mariadb.env_** to personalize settings like :\n\n* MariaDB root password\n* GLPI database\n* GLPI user database\n* GLPI user password\n\n\n### mariadb.env\n```\nMARIADB_ROOT_PASSWORD=diouxx\nMARIADB_DATABASE=glpidb\nMARIADB_USER=glpi_user\nMARIADB_PASSWORD=glpi\n```\n\n### docker-compose .yml\n```yaml\nversion: \"3.2\"\n\nservices:\n#MariaDB Container\n  mariadb:\n    image: mariadb:10.7\n    container_name: mariadb\n    hostname: mariadb\n    volumes:\n      - /var/lib/mysql:/var/lib/mysql\n    env_file:\n      - ./mariadb.env\n    restart: always\n\n#GLPI Container\n  glpi:\n    image: diouxx/glpi\n    container_name : glpi\n    hostname: glpi\n    ports:\n      - \"80:80\"\n    volumes:\n      - /etc/timezone:/etc/timezone:ro\n      - /etc/localtime:/etc/localtime:ro\n      - /var/www/html/glpi/:/var/www/html/glpi\n    environment:\n      - TIMEZONE=Europe/Brussels\n    restart: always\n```\n\nTo deploy, just run the following command on the same directory as files\n\n```sh\ndocker-compose up -d\n```\n\n# Environnment variables\n\n## TIMEZONE\nIf you need to set timezone for Apache and PHP\n\nFrom commande line\n```sh\ndocker run --name glpi --hostname glpi --link mariadb:mariadb --volumes-from glpi-data -p 80:80 --env \"TIMEZONE=Europe/Brussels\" -d diouxx/glpi\n```\n\nFrom docker-compose\n\nModify this settings\n```yaml\nenvironment:\n     TIMEZONE=Europe/Brussels\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDiouxX%2Fdocker-glpi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDiouxX%2Fdocker-glpi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDiouxX%2Fdocker-glpi/lists"}