commit
8b13a3bf5c
@ -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
|
||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in new issue