forked from flyve-mdm/docker-environment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·105 lines (104 loc) · 3.06 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
version: '3'
services:
# database
glpi-dbmysql:
build:
context: ./docker/mysql
dockerfile: Dockerfile
args:
MYSQL_TAG: ${MYSQL_TAG}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
container_name: Glpi-MYSQL
hostname: glpidb
volumes:
# hold the persisted data
- ./db_data:/var/lib/mysql
ports:
- ${HOST_SERVER_DB_PORT}:3306
# mosquitto
glpi-mosquitto:
build:
context: ./docker/mosquitto
dockerfile: Dockerfile
args:
MOSQUITTO_TAG: ${MOSQUITTO_TAG}
container_name: Glpi-Mosquitto
volumes:
# hold the persisted data
- ./docker/mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf
ports:
- ${HOST_SERVER_MOSQUITTO_PORT}:1883
- ${HOST_SERVER_MOSQUITTO_PORT_TLS}:8883
# web server
glpi-apache:
build:
context: ./docker/apache
dockerfile: Dockerfile
args:
APACHE_TAG: ${APACHE_TAG}
HOST_SERVER_NAME: ${HOST_SERVER_NAME}
GLPIPATH: ${GLPIPATH}
container_name: Glpi-apache
hostname: glpiapache
volumes:
# app folder
- ./www:${GLPIPATH}:z
- ./docker/apache/httpd.conf:/usr/local/apache2/conf/httpd.conf
- ./docker/apache/httpd-vhosts.conf:/usr/local/apache2/conf/extra/httpd-vhosts.conf
working_dir: ${GLPIPATH}
ports:
# http port
- ${HOST_SERVER_WEB_PORT}:80
#PHP
glpi-php:
cap_add:
- NET_ADMIN
build:
context: ./docker/php
dockerfile: Dockerfile
args:
PHP_TAG: ${PHP_TAG}
GLPI_DB_NAME_TEST: ${GLPI_DB_NAME_TEST}
GLPI_DB_NAME_UPGRADE_TEST: ${GLPI_DB_NAME_UPGRADE_TEST}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
GLPI_DB_NAME: ${GLPI_DB_NAME}
GLPI_BRANCH: ${GLPI_BRANCH}
GLPI_SOURCE: ${GLPI_SOURCE}
CLONNING_METHOD: ${CLONNING_METHOD}
GLPIPATH: ${GLPIPATH}
DEFAULT_TIME_ZONE: ${DEFAULT_TIME_ZONE}
FLYVEMDM_BRANCH: ${FLYVEMDM_BRANCH}
FLYVEMDM_SOURCE: ${FLYVEMDM_SOURCE}
FLYVEMDM_PATH: ${FLYVEMDM_PATH}
FUSIONINVENTORY_BRANCH: ${FUSIONINVENTORY_BRANCH}
FUSIONINVENTORY_SOURCE: ${FUSIONINVENTORY_SOURCE}
FUSIONINVENTORY_PATH: ${FUSIONINVENTORY_PATH}
HOST_SERVER_MOSQUITTO_PORT: ${HOST_SERVER_MOSQUITTO_PORT}
HOST_SERVER_MOSQUITTO_PORT_TLS: ${HOST_SERVER_MOSQUITTO_PORT_TLS}
HOST_SERVER_NAME: ${HOST_SERVER_NAME}
container_name: Glpi-PHP
hostname: glpiphp
links:
- glpi-dbmysql:dockerdb
- glpi-mosquitto:dockerMosquitto
command: ["/opt/dev-tools/cliinstall.sh"]
volumes:
- ./www:${GLPIPATH}:z
- ./docker/php/custom.ini:/usr/local/etc/php/conf.d/custom.ini
- ${HOST_CONFIG_SSH_PATH}:/root/.ssh:z #Your Access ssh keys
glpi-phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: Glpi-Phpmyadmin
hostname: glpiphpmyadmin
links:
- glpi-dbmysql:dockerdb
ports:
- ${HOST_ADMIN_DB}:80
environment:
PMA_USER: root
PMA_PASSWORD: docker
PMA_HOST: glpi-dbmysql
volumes:
db-data: {}
mosquitto: {}
# End of file