-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
111 lines (101 loc) · 2.77 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
106
107
108
109
110
111
services:
mariadb:
image: mariadb:11.4
restart: unless-stopped
volumes:
- mariadb-glpi-volume:/var/lib/mysql:rw
env_file: ./.env
ports:
- "3306:3306"
mariadb-timezone:
image: mariadb:11.4
restart: on-failure
env_file: ./.env
depends_on:
- mariadb
command: mariadb -h $MARIADB_HOST -u root -p$MARIADB_ROOT_PASSWORD -e "GRANT SELECT ON \`mysql\`.\`time_zone_name\` TO 'glpi'@'%'; FLUSH PRIVILEGES;"
glpi-db-install:
image: ghcr.io/sysadminsmedia/glpi:10.0.16
restart: on-failure
env_file: ./.env
volumes:
- glpi-marketplace:/app/public/marketplace:rw
- glpi-files:/var/lib/glpi:rw
- glpi-etc:/etc/glpi:rw
depends_on:
- mariadb
command:
- /usr/local/bin/glpi-db-install.sh
glpi-verify-dir:
image: ghcr.io/sysadminsmedia/glpi:10.0.16
restart: on-failure
volumes:
- glpi-marketplace:/app/public/marketplace:rw
- glpi-files:/var/lib/glpi:rw
- glpi-etc:/etc/glpi:rw
env_file: ./.env
depends_on:
- glpi-db-install
command:
- /usr/local/bin/glpi-verify-dir.sh
glpi-db-configure:
image: ghcr.io/sysadminsmedia/glpi:10.0.16
restart: on-failure
volumes:
- glpi-marketplace:/app/public/marketplace:rw
- glpi-files:/var/lib/glpi:rw
- glpi-etc:/etc/glpi:rw
env_file: ./.env
depends_on:
- glpi-verify-dir
command:
- /usr/local/bin/glpi-db-configure.sh
redis:
image: redis:latest
restart: unless-stopped
env_file: ./.env
glpi-cache-configure:
image: ghcr.io/sysadminsmedia/glpi:10.0.16
restart: on-failure
volumes:
- glpi-marketplace:/app/public/marketplace:rw
- glpi-files:/var/lib/glpi:rw
- glpi-etc:/etc/glpi:rw
env_file: ./.env
depends_on:
- glpi-verify-dir
- redis
command:
- /usr/local/bin/glpi-cache-configure.sh
php:
image: ghcr.io/sysadminsmedia/glpi:10.0.16
restart: unless-stopped
volumes:
- glpi-marketplace:/app/public/marketplace:rw
- glpi-files:/var/lib/glpi:rw
- glpi-etc:/etc/glpi:rw
env_file: ./.env
depends_on:
- mariadb
- glpi-db-install
- glpi-db-configure
- glpi-verify-dir
ports:
- "9000:80"
php-cron:
image: ghcr.io/sysadminsmedia/glpi:10.0.16
restart: unless-stopped
volumes:
- glpi-marketplace:/app/public/marketplace:rw
- glpi-files:/var/lib/glpi:rw
- glpi-etc:/etc/glpi:rw
env_file: ./.env
depends_on:
- php
command: ["/usr/sbin/crond", "-f", "-d", "0"]
volumes:
glpi-marketplace:
glpi-files:
glpi-etc:
glpi-install:
mariadb-glpi-volume: