mirror of
https://github.com/DiouxX/docker-glpi.git
synced 2026-11-07 15:32:33 -05:00
3 files changed
+63
-29
No files matched your search
@@ -0,0 +1,26 @@
|
|||||||
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
#GLPI Container
|
||||||
|
glpi:
|
||||||
|
build: ./
|
||||||
|
image: myglpi
|
||||||
|
container_name : myglpi
|
||||||
|
ports:
|
||||||
|
- "9080:80"
|
||||||
|
links:
|
||||||
|
- mysql:mysql
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- "/etc/timezone:/etc/timezone"
|
||||||
|
- "/etc/localtime:/etc/localtime"
|
||||||
|
environment:
|
||||||
|
TIMEZONE: Europe/Paris
|
||||||
|
|
||||||
|
#Mysql Container
|
||||||
|
mysql:
|
||||||
|
image: mysql
|
||||||
|
container_name: mysql
|
||||||
|
hostname: mysql
|
||||||
|
env_file:
|
||||||
|
- ./mysql.env
|
||||||
+33
-29
@@ -1,36 +1,40 @@
|
|||||||
|
version: "2"
|
||||||
|
|
||||||
|
services:
|
||||||
#Mysql Persitance Data
|
#Mysql Persitance Data
|
||||||
mysql-data:
|
mysql-data:
|
||||||
image: busybox
|
image: busybox
|
||||||
container_name: mysql-data
|
container_name: mysql-data
|
||||||
volumes:
|
volumes:
|
||||||
- /var/lib/mysql:/var/lib/mysql
|
- /var/lib/mysql:/var/lib/mysql
|
||||||
|
|
||||||
#Mysql Container
|
#Mysql Container
|
||||||
mysql:
|
mysql:
|
||||||
image: mysql
|
image: mysql
|
||||||
container_name: mysql
|
container_name: mysql
|
||||||
hostname: mysql
|
hostname: mysql
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- mysql-data
|
- mysql-data
|
||||||
env_file:
|
env_file:
|
||||||
- ./mysql.env
|
- ./mysql.env
|
||||||
|
|
||||||
#GLPI Pesitance Data
|
#GLPI Pesitance Data
|
||||||
glpi-data:
|
glpi-data:
|
||||||
image: busybox
|
image: busybox
|
||||||
container_name: glpi-data
|
container_name: glpi-data
|
||||||
volumes:
|
volumes:
|
||||||
- /var/www/html/glpi:/var/www/html/glpi
|
- /var/www/html/glpi:/var/www/html/glpi
|
||||||
|
|
||||||
#GLPI Container
|
#GLPI Container
|
||||||
glpi:
|
glpi:
|
||||||
image: diouxx/glpi
|
build: ./
|
||||||
container_name : glpi
|
image: myglpi
|
||||||
hostname: glpi
|
container_name : myglpi
|
||||||
ports:
|
hostname: glpi
|
||||||
- "80:80"
|
ports:
|
||||||
links:
|
- "80:80"
|
||||||
- mysql:mysql
|
links:
|
||||||
volumes_from:
|
- mysql:mysql
|
||||||
- glpi-data
|
volumes_from:
|
||||||
restart: always
|
- glpi-data
|
||||||
|
restart: always
|
||||||
@@ -4,6 +4,10 @@
|
|||||||
[[ ! "$VERSION_GLPI" ]] \
|
[[ ! "$VERSION_GLPI" ]] \
|
||||||
&& VERSION_GLPI=$(curl -s https://api.github.com/repos/glpi-project/glpi/releases/latest | grep tag_name | cut -d '"' -f 4)
|
&& VERSION_GLPI=$(curl -s https://api.github.com/repos/glpi-project/glpi/releases/latest | grep tag_name | cut -d '"' -f 4)
|
||||||
|
|
||||||
|
if [[ -z "${TIMEZONE}" ]]; then echo "TIMEZONE is unset";
|
||||||
|
else echo "date.timezone = \"$TIMEZONE\"" > /etc/php/7.0/apache2/conf.d/timezone.ini;
|
||||||
|
fi
|
||||||
|
|
||||||
SRC_GLPI="https://github.com/glpi-project/glpi/releases/download/${VERSION_GLPI}/glpi-${VERSION_GLPI}.tgz"
|
SRC_GLPI="https://github.com/glpi-project/glpi/releases/download/${VERSION_GLPI}/glpi-${VERSION_GLPI}.tgz"
|
||||||
TAR_GLPI=glpi-${VERSION_GLPI}.tgz
|
TAR_GLPI=glpi-${VERSION_GLPI}.tgz
|
||||||
FOLDER_GLPI=glpi/
|
FOLDER_GLPI=glpi/
|
||||||
|
|||||||
Reference in new issue
Block a user