-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (57 loc) · 1.28 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: '3.3'
services:
mysql:
image: mysql:5.7
container_name: 'mysql'
labels:
conteiner.description: "Mysql 5.7 DB"
ports:
- 3306:3306
volumes:
- ./mysqldata:/var/lib/mysql
- ./conf/mysqld.cnf://etc/mysql/mysql.conf.d/mysqld.cnf:ro
restart: always
environment:
- TZ=America/Sao_Paulo
- MYSQL_ROOT_PASSWORD=glpihml
- MYSQL_DATABASE=glpi
- MYSQL_USER=glpiuser
- MYSQL_PASSWORD=glpipass
glpi:
build:
context: .
dockerfile: Dockerfile-glpi
args:
UBUNTU_VERSION: 16.04
container_name: 'glpi'
depends_on:
- mysql
labels:
conteiner.description: "GLPI Web Server Apache"
volumes:
- ./html:/var/www/html
- ./scripts/glpi-start.sh:/opt/glpi-start.sh:ro
restart: always
ports:
- 80:80
- 443:443
environment:
- GLPI_VERSION=9.1.3
- GLPI_MYSQL_HOST=mysql
- GLPI_MYSQL_USER=glpiuser
- GLPI_MYSQL_PASS=glpipass
- GLPI_MYSQL_DB=glpi
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
container_name: 'phpmyadmin'
labels:
conteiner.description: "PHPmyadmin Webpage"
ports:
- 8080:80
volumes:
- /sessions
restart: always
environment:
- TZ=America/Sao_Paulo
- PMA_HOST=mysql
- PMA_PORT=3306