-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathdocker-compose.yml
52 lines (48 loc) · 1.26 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
version: '2.1'
services:
glpi:
image: turgon37/glpi:nginx-72-latest
environment:
GLPI_REMOVE_INSTALLER: 'no'
GLPI_INSTALL_PLUGINS: "\
fusioninventory|https://github.com/fusioninventory/fusioninventory-for-glpi/releases/download/glpi9.2%2B1.0/glpi-fusioninventory-9.2.1.0.tar.bz2,\
dumpentity|https://forge.glpi-project.org/attachments/download/2089/glpi-dumpentity-1.4.0.tar.gz\
"
ports:
- 127.0.0.1:8008:80
volumes:
- data-glpi-files:/var/www/files
- data-glpi-config:/var/www/config
depends_on:
mysqldb:
condition: service_healthy
restart: always
networks:
glpi-network:
aliases:
- glpi
mysqldb:
image: mysql
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
interval: 10s
timeout: 5s
retries: 5
restart: always
command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8
environment:
MYSQL_ROOT_PASSWORD: root
volumes:
- mysql-glpi-db:/var/lib/mysql
restart: always
networks:
glpi-network:
aliases:
- mysqldb
networks:
glpi-network:
driver: bridge
volumes:
data-glpi-files:
data-glpi-config:
mysql-glpi-db: