forked from DiouxX/docker-glpi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
37 lines (33 loc) · 1002 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: "3.2"
services:
#Mysql Container
mysql:
image: mariadb:latest
container_name: mysql
hostname: mysql
volumes:
- ./mysql:/var/lib/mysql
env_file:
- ./mysql.env
restart: always
#GLPI Container
glpi:
image: glpi:latest
container_name : glpi
hostname: glpi
ports:
- "3088:80"
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- ./glpi/config:/var/www/html/glpi/config
# - ./glpi/files:/var/www/html/glpi/files
- ./glpi/plugins:/var/www/html/glpi/plugins
- ./cron:/etc/cron.d
- ./httpd:/etc/apache2/sites-enabled
# - /var/www/html/glpi/:/var/www/html/glpi
environment:
- TIMEZONE=Europe/Samara
restart: always
#Web access to the files directory should not be allowed but this cannot be checked automatically on this instance.
#Make sure acces to error log file is forbidden; otherwise review .htaccess file and web server configuration.