-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
84 lines (78 loc) · 2.09 KB
/
docker-compose.yaml
File metadata and controls
84 lines (78 loc) · 2.09 KB
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
services:
app:
container_name: "glpi-app"
build:
context: ".docker/app"
args:
PHP_VERSION: "8.4"
restart: "unless-stopped"
volumes:
- ".:/var/www/glpi:rw"
- "custom_php_ini:/usr/local/etc/php/custom_conf.d/:rw"
ports:
- "8080:80"
- "8090:8090" # E2E test server
- "9637:9637"
depends_on:
- db
environment:
# By default the testing env is exposed under the 8080 internal port
CYPRESS_BASE_URL: http://localhost:8080
extra_hosts:
- "host.docker.internal:host-gateway"
db:
container_name: "glpi-db"
image: "mariadb:11.8"
restart: "unless-stopped"
volumes:
- "db:/var/lib/mysql"
- ".docker/initdb.sql:/docker-entrypoint-initdb.d/initdb.sql"
environment:
MARIADB_ROOT_PASSWORD: "glpi"
MARIADB_DATABASE: "glpi"
MARIADB_USER: "glpi"
MARIADB_PASSWORD: "glpi"
expose:
- "3306"
mailpit:
container_name: "glpi-mailpit"
image: "axllent/mailpit"
restart: "unless-stopped"
expose:
- "1025"
ports:
- "8025:8025"
dbgate:
container_name: "glpi-dbgate"
image: "dbgate/dbgate:latest"
restart: "unless-stopped"
ports:
- "9000:3000"
environment:
CONNECTIONS: "glpi"
LABEL_glpi: "GLPI Mysql Server"
SERVER_glpi: "db"
USER_glpi: "glpi"
PASSWORD_glpi: "glpi"
PORT_glpi: 3306
ENGINE_glpi: "mysql@dbgate-plugin-mysql"
# To create a preconfigured LDAP object in GLPI, run `make console c='tools:generate_dev_ldap'`
openldap:
container_name: "glpi-openldap"
image: "osixia/openldap:latest"
restart: "unless-stopped"
environment:
LDAP_ORGANISATION: "GLPI"
LDAP_DOMAIN: "glpi.org"
LDAP_ADMIN_USERNAME: "admin"
LDAP_ADMIN_PASSWORD: "admin"
command: "--copy-service"
volumes:
- "./tests/LDAP/ldif/10-users.ldif:/container/service/slapd/assets/config/bootstrap/ldif/50-bootstrap.ldif:rw"
- "ldap_files:/var/lib/ldap:rw"
- "ldap_config:/etc/ldap/slapd.d/:rw"
volumes:
db:
custom_php_ini:
ldap_files:
ldap_config: