mirror of
https://github.com/DiouxX/docker-glpi.git
synced 2026-11-04 22:52:32 -05:00
Add timezone settings
This commit is contained in:
1 parent
8b13a3bf5c
commit
3acba52bf2
2 files changed
+40
-2
No files matched your search
@@ -2,8 +2,23 @@
|
||||
|
||||
[](http://microbadger.com/images/diouxx/glpi "Get your own version badge on microbadger.com") [](http://microbadger.com/images/diouxx/glpi "Get your own image badge on microbadger.com")
|
||||
|
||||
# Table of Contents
|
||||
1. [Introduction](#introduction)
|
||||
2. [Deploy CLI](#deploy-with-CLI)
|
||||
- [Deploy GLPI without database](#deploy-glpi-without-database)
|
||||
- [Deploy GLPI with existing database](#deploy-glpi-with-existing-database)
|
||||
- [Deploy GLPI with database and persistance container data](#deploy-glpi-with-database-and-persistance-container-data)
|
||||
- [Deploy a specific release of GLPI](#deploy-a-specific-release-of-glpi)
|
||||
3. [Deploy docker-compose](#deploy-with-docker-compose)
|
||||
4. [Environnment variables](#environnment-variables)
|
||||
- [Timezone](#timezone)
|
||||
|
||||
# Introduction
|
||||
|
||||
Install and run an GLPI instance with docker.
|
||||
|
||||
# Deploy with CLI
|
||||
|
||||
## Deploy GLPI without database
|
||||
```sh
|
||||
docker run --name glpi -p 80:80 -d diouxx/glpi
|
||||
@@ -14,7 +29,7 @@ docker run --name glpi -p 80:80 -d diouxx/glpi
|
||||
docker run --name glpi --link yourdatabase:mysql -p 80:80 -d diouxx/glpi
|
||||
```
|
||||
|
||||
## Deploy GLPI with database and persistance container data (Recommended)
|
||||
## 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.
|
||||
|
||||
@@ -40,7 +55,7 @@ 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
|
||||
# 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 :
|
||||
@@ -55,3 +70,21 @@ To deploy, just run the following command on the same directory as files
|
||||
```sh
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
# Environnment variables
|
||||
|
||||
## TIMEZONE
|
||||
If you need to set timezone for Apache and PHP
|
||||
|
||||
From commande line
|
||||
```sh
|
||||
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
|
||||
```yml
|
||||
environment:
|
||||
TIMEZONE: Europe/Brussels
|
||||
```
|
||||
@@ -37,4 +37,9 @@ services:
|
||||
- mysql:mysql
|
||||
volumes_from:
|
||||
- glpi-data
|
||||
volumes:
|
||||
- /etc/timezone:/etc/timezone
|
||||
- /etc/localtime:/etc/localtime
|
||||
environment:
|
||||
TIMEZONE: Europe/Brussels
|
||||
restart: always
|
||||
Reference in new issue
Block a user