-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
79 lines (73 loc) · 1.4 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '3'
services:
ti-php:
build: ./php
volumes:
- ti_glpi:/glpi
ti-db:
image: mariadb:10.3
restart: always
environment:
MYSQL_DATABASE: ocsweb
MYSQL_USER: ocs
MYSQL_PASSWORD: ocs
MYSQL_ROOT_PASSWORD: password
volumes:
- ti_db:/var/lib/mysql
ti-glpi:
build: ./glpi
ports:
- 8080:80
volumes:
- ti_glpi:/glpi
- ti_logs:/var/log/nginx
links:
- ti-php
ti-inventory:
build: ./ocsinventory
ports:
- 8081:80
environment:
OCS_DBNAME: ocsweb
OCS_DBSERVER_READ: ti-db
OCS_DBSERVER_WRITE: ti-db
OCS_DBUSER: root
OCS_DBPASS: password
volumes :
- ti_inventory_srv:/usr/share/ocsinventory-reports/
- ti_inventory_conf:/etc/ocsinventory-reports/
- ti_inventory_libs:/var/lib/ocsinventory-reports/
links:
- ti-db
ti-admin:
image: phpmyadmin/phpmyadmin
restart: always
ports:
- 8180:80
environment:
PMA_ARBITRARY: 1
MYSQL_ROOT_PASSWORD: password
links:
- ti-db
ti-web:
build: nginx/
ports:
- 80:80
links:
- ti-inventory
- ti-glpi
volumes:
ti_glpi:
driver: local
ti_db:
driver: local
ti_web:
driver: local
ti_logs:
driver: local
ti_inventory_conf:
driver: local
ti_inventory_srv:
driver: local
ti_inventory_libs:
driver: local