forked from orangehrm/orangehrm-os-dev-environment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
385 lines (358 loc) · 8.31 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
version: "2"
services:
nginx:
image: samanthajayasinghe/ohrm-nginx
ports:
- "${NGINX_PORT}:80"
- "${NGINX_SSL_PORT}:443"
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
networks:
- php-dev
restart: always
container_name: os_dev_nginx
php-5.6:
image: samanthajayasinghe/ohrm-php56
working_dir: ${REMOTE_SRC}
environment:
HIST_FILE: /root/.bash_history
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- $HOME/.bash_history:/root/.bash_history
networks:
- php-dev
restart: always
container_name: os_dev_php56
php-7.0:
image: samanthajayasinghe/ohrm-php70
working_dir: ${REMOTE_SRC}
environment:
HIST_FILE: /root/.bash_history
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- $HOME/.bash_history:/root/.bash_history
networks:
- php-dev
restart: always
container_name: os_dev_php70
php-7.1:
image: samanthajayasinghe/ohrm-php71
working_dir: ${REMOTE_SRC}
environment:
HIST_FILE: /root/.bash_history
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- $HOME/.bash_history:/root/.bash_history
networks:
- php-dev
restart: always
container_name: os_dev_php71
php-7.2:
image: samanthajayasinghe/ohrm-php72
working_dir: ${REMOTE_SRC}
environment:
HIST_FILE: /root/.bash_history
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- $HOME/.bash_history:/root/.bash_history
networks:
- php-dev
restart: always
container_name: os_dev_php72
php-7.3:
image: samanthajayasinghe/ohrm-php73
working_dir: ${REMOTE_SRC}
environment:
HIST_FILE: /root/.bash_history
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- $HOME/.bash_history:/root/.bash_history
networks:
- php-dev
restart: always
container_name: os_dev_php73
php-7.4:
image: samanthajayasinghe/ohrm-php74
working_dir: ${REMOTE_SRC}
environment:
HIST_FILE: /root/.bash_history
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- $HOME/.bash_history:/root/.bash_history
networks:
- php-dev
restart: always
container_name: os_dev_php74
php-8.0:
image: samanthajayasinghe/ohrm-php80
working_dir: ${REMOTE_SRC}
environment:
HIST_FILE: /root/.bash_history
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- $HOME/.bash_history:/root/.bash_history
networks:
- php-dev
restart: always
container_name: os_dev_php80
php-8.1:
image: samanthajayasinghe/ohrm-php81
working_dir: ${REMOTE_SRC}
environment:
HIST_FILE: /root/.bash_history
volumes:
- ${LOCAL_SRC}:${REMOTE_SRC}
- $HOME/.bash_history:/root/.bash_history
networks:
- php-dev
restart: always
container_name: os_dev_php81
mysql57:
image: mysql:5.7
ports:
- "${MYSQL_57_PORT}:3306"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PW}
volumes:
- mysql-data-57:/var/lib/mysql/
depends_on:
- nginx
networks:
- php-dev
restart: always
container_name: os_dev_mysql57
mysql56:
image: mysql:5.6
ports:
- "${MYSQL_56_PORT}:3306"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PW}
volumes:
- mysql-data-56:/var/lib/mysql/
depends_on:
- nginx
networks:
- php-dev
restart: always
container_name: os_dev_mysql56
mysql55:
image: mysql:5.5
ports:
- "${MYSQL_55_PORT}:3306"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PW}
volumes:
- mysql-data-55:/var/lib/mysql/
depends_on:
- nginx
networks:
- php-dev
restart: always
container_name: os_dev_mysql55
mysql80:
image: mysql:8.0
ports:
- "${MYSQL_80_PORT}:3306"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PW}
volumes:
- mysql-data-80:/var/lib/mysql/
depends_on:
- nginx
networks:
- php-dev
restart: always
container_name: os_dev_mysql80
mariadb55:
image: mariadb:5.5
ports:
- "${MARIADB_55_PORT}:3306"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PW}
volumes:
- mariadb-data-55:/var/lib/mysql/
depends_on:
- nginx
mem_swappiness: 1
networks:
- php-dev
restart: always
container_name: os_dev_mariadb55
mariadb100:
image: mariadb:10.0
ports:
- "${MARIADB_100_PORT}:3306"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PW}
volumes:
- mariadb-data-100:/var/lib/mysql/
depends_on:
- nginx
mem_swappiness: 1
networks:
- php-dev
restart: always
container_name: os_dev_mariadb100
mariadb101:
image: mariadb:10.1
ports:
- "${MARIADB_101_PORT}:3306"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PW}
volumes:
- mariadb-data-101:/var/lib/mysql/
depends_on:
- nginx
mem_swappiness: 1
networks:
- php-dev
restart: always
container_name: os_dev_mariadb101
mariadb102:
image: mariadb:10.2
ports:
- "${MARIADB_102_PORT}:3306"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PW}
volumes:
- mariadb-data-102:/var/lib/mysql/
depends_on:
- nginx
mem_swappiness: 1
networks:
- php-dev
restart: always
container_name: os_dev_mariadb102
mariadb103:
image: mariadb:10.3
ports:
- "${MARIADB_103_PORT}:3306"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PW}
volumes:
- mariadb-data-103:/var/lib/mysql/
depends_on:
- nginx
mem_swappiness: 1
networks:
- php-dev
restart: always
container_name: os_dev_mariadb103
mariadb104:
image: mariadb:10.4
ports:
- "${MARIADB_104_PORT}:3306"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PW}
volumes:
- mariadb-data-104:/var/lib/mysql/
depends_on:
- nginx
mem_swappiness: 1
networks:
- php-dev
restart: always
container_name: os_dev_mariadb104
mariadb105:
image: mariadb:10.5
ports:
- "${MARIADB_105_PORT}:3306"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PW}
volumes:
- mariadb-data-105:/var/lib/mysql/
depends_on:
- nginx
mem_swappiness: 1
networks:
- php-dev
restart: always
container_name: os_dev_mariadb105
mariadb106:
image: mariadb:10.6
ports:
- "${MARIADB_106_PORT}:3306"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PW}
volumes:
- mariadb-data-106:/var/lib/mysql/
depends_on:
- nginx
mem_swappiness: 1
networks:
- php-dev
restart: always
container_name: os_dev_mariadb106
mariadb107:
image: mariadb:10.7
ports:
- "${MARIADB_107_PORT}:3306"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PW}
volumes:
- mariadb-data-107:/var/lib/mysql/
depends_on:
- nginx
mem_swappiness: 1
networks:
- php-dev
restart: always
container_name: os_dev_mariadb107
mariadb108:
image: mariadb:10.8
ports:
- "${MARIADB_108_PORT}:3306"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PW}
volumes:
- mariadb-data-108:/var/lib/mysql/
depends_on:
- nginx
mem_swappiness: 1
networks:
- php-dev
restart: always
container_name: os_dev_mariadb108
mariadb109:
image: mariadb:10.9-rc
ports:
- "${MARIADB_109_PORT}:3306"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PW}
volumes:
- mariadb-data-109:/var/lib/mysql/
depends_on:
- nginx
mem_swappiness: 1
networks:
- php-dev
restart: always
container_name: os_dev_mariadb109
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- "${PHPMYADMIN_PORT}:80"
environment:
PMA_HOSTS: mysql55,mysql56,mysql57,mysql80,mariadb55,mariadb100,mariadb101,mariadb102,mariadb103,mariadb104,mariadb105,mariadb106,mariadb107,mariadb108,mariadb109
networks:
- php-dev
restart: always
container_name: os_dev_phpmyadmin
volumes:
mysql-data-55:
mysql-data-56:
mysql-data-57:
mysql-data-80:
mariadb-data-55:
mariadb-data-100:
mariadb-data-101:
mariadb-data-102:
mariadb-data-103:
mariadb-data-104:
mariadb-data-105:
mariadb-data-106:
mariadb-data-107:
mariadb-data-108:
mariadb-data-109:
networks:
php-dev: