|
|
|
@ -18,7 +18,7 @@
|
|
|
|
- [Deploy with persistence data](#deploy-with-persistence-data)
|
|
|
|
- [Deploy with persistence data](#deploy-with-persistence-data)
|
|
|
|
- [mariadb.env](#mariadbenv)
|
|
|
|
- [mariadb.env](#mariadbenv)
|
|
|
|
- [docker-compose .yml](#docker-compose-yml)
|
|
|
|
- [docker-compose .yml](#docker-compose-yml)
|
|
|
|
- [Environnment variables](#environnment-variables)
|
|
|
|
- [Environment variables](#environment-variables)
|
|
|
|
- [TIMEZONE](#timezone)
|
|
|
|
- [TIMEZONE](#timezone)
|
|
|
|
|
|
|
|
|
|
|
|
# Introduction
|
|
|
|
# Introduction
|
|
|
|
@ -51,7 +51,7 @@ docker run --name glpi --link yourdatabase:mariadb -p 80:80 -d diouxx/glpi
|
|
|
|
|
|
|
|
|
|
|
|
## Deploy GLPI with database and persistence data
|
|
|
|
## Deploy GLPI with database and persistence data
|
|
|
|
|
|
|
|
|
|
|
|
For an usage on production environnement or daily usage, it's recommanded to use container with volumes to persistent data.
|
|
|
|
For an usage on production environment or daily usage, it's recommended to use container with volumes to persistent data.
|
|
|
|
|
|
|
|
|
|
|
|
* First, create MariaDB container with volume
|
|
|
|
* First, create MariaDB container with volume
|
|
|
|
|
|
|
|
|
|
|
|
@ -69,7 +69,7 @@ Enjoy :)
|
|
|
|
|
|
|
|
|
|
|
|
## Deploy a specific release of GLPI
|
|
|
|
## Deploy a specific release of GLPI
|
|
|
|
Default, docker run will use the latest 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.
|
|
|
|
For an usage on production environment, it's recommended to set specific release.
|
|
|
|
Here an example for release 9.1.6 :
|
|
|
|
Here an example for release 9.1.6 :
|
|
|
|
```sh
|
|
|
|
```sh
|
|
|
|
docker 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
|
|
|
|
docker 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
|
|
|
|
@ -187,7 +187,7 @@ To deploy, just run the following command on the same directory as files
|
|
|
|
docker-compose up -d
|
|
|
|
docker-compose up -d
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
# Environnment variables
|
|
|
|
# Environment variables
|
|
|
|
|
|
|
|
|
|
|
|
## TIMEZONE
|
|
|
|
## TIMEZONE
|
|
|
|
If you need to set timezone for Apache and PHP
|
|
|
|
If you need to set timezone for Apache and PHP
|
|
|
|
|