-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.yml
490 lines (455 loc) · 16.4 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
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
version: '3.6'
x-dev_env_volumes: &dev_env_volumes
volumes:
# This wordpress bind mount could be uncommented in order to get access in the host
# to the wordpress installation used by the container, such as for debugging.
# Normally, it's best to leave it uncommented, because:
#
# 1. performance: the more is bind-mounted, the longer it takes to start up
# the container, and there are quite a few files under wordress.
#
# 2. isolation: when there *is* something already mounted on /var/www/html,
# that will be used for the wordpress install *instead* of the container
# using its own version.
# - ./volumes/wordpress:/var/www/html
# The bind mount for this plugin. The effect is that the entire directory structure
# of this repo is mounted inside the container under /var/www/html/wp-content/plugins/font-awesome
# As a result, Docker will have a lot of work to do if there are a lot of files.
# Under Docker for Mac Desktop, performance due to keeping the host
# and container filesystems in sync can get slow and bothersome, especially when
# starting up the container. But also when doing a bit filesystem churn, like
# removing or rebuilding admin/node_modules, which involves 10s of thousands
# of files.
#
# Docker doesn't seem to have feature for ignoring specified files or paths,
# but there's a trick to accomplish a similar result that works. See below
# how we ignore subdirectories.
- .:/var/www/html/wp-content/plugins/font-awesome
# Bind mounts for integration themes or plugins
- ./integrations/js:/var/www/html/wp-content/js
- ./integrations/themes/theme-alpha:/var/www/html/wp-content/themes/theme-alpha
- ./integrations/themes/theme-mu:/var/www/html/wp-content/themes/theme-mu
- ./integrations/plugins/plugin-beta:/var/www/html/wp-content/plugins/plugin-beta
- ./integrations/plugins/plugin-gamma:/var/www/html/wp-content/plugins/plugin-gamma
- ./integrations/plugins/plugin-delta:/var/www/html/wp-content/plugins/plugin-delta
- ./integrations/plugins/plugin-epsilon:/var/www/html/wp-content/plugins/plugin-epsilon
- ./integrations/plugins/plugin-zeta:/var/www/html/wp-content/plugins/plugin-zeta
- ./integrations/plugins/plugin-eta:/var/www/html/wp-content/plugins/plugin-eta
- ./integrations/plugins/plugin-lambda:/var/www/html/wp-content/plugins/plugin-lambda
- ./integrations/plugins/plugin-kappa:/var/www/html/wp-content/plugins/plugin-kappa
- ./integrations/plugins/plugin-sigma:/var/www/html/wp-content/plugins/plugin-sigma
- ./integrations/plugins/plugin-nu:/var/www/html/wp-content/plugins/plugin-nu
- ./integrations/plugins/font-awesome-cleanup:/var/www/html/wp-content/plugins/font-awesome-cleanup
# Explicitly ignore various subdirectories like this, listing the target path
# on the container filesystem. The result will be that the directory will exist
# but it will be empty, thus relieving Docker of the burden to keep its files
# in sync between the host and container.
#
# ignores for the local plugin repo and working directory
- /var/www/html/wp-content/plugins/font-awesome/compat-js/node_modules
- /var/www/html/wp-content/plugins/font-awesome/admin/node_modules
- /var/www/html/wp-content/plugins/font-awesome/docs
- /var/www/html/wp-content/plugins/font-awesome/docsrv
- /var/www/html/wp-content/plugins/font-awesome/phpdoc-data
- /var/www/html/wp-content/plugins/font-awesome/tmp
- /var/www/html/wp-content/plugins/font-awesome/volumes
- /var/www/html/wp-content/plugins/font-awesome/wp-dist
- /var/www/html/wp-content/plugins/font-awesome/images
- /var/www/html/wp-content/plugins/font-awesome/assets
- /var/www/html/wp-content/plugins/font-awesome/.vscode
- /var/www/html/wp-content/plugins/font-awesome/.idea
- /var/www/html/wp-content/plugins/font-awesome/.git
- /var/www/html/wp-content/plugins/font-awesome/docker
- /var/www/html/wp-content/plugins/font-awesome/integrations
# ignores for the stuff that plugin-sigma may pull into its vendor bundle
# when doing composer update
- /var/www/html/wp-content/plugins/plugin-sigma/vendor/fortawesome/wordpress-fontawesome/docs
- /var/www/html/wp-content/plugins/plugin-sigma/vendor/fortawesome/wordpress-fontawesome/bin
- /var/www/html/wp-content/plugins/plugin-sigma/vendor/fortawesome/wordpress-fontawesome/docsrv
- /var/www/html/wp-content/plugins/plugin-sigma/vendor/fortawesome/wordpress-fontawesome/images
- /var/www/html/wp-content/plugins/plugin-sigma/vendor/fortawesome/wordpress-fontawesome/tests
- /var/www/html/wp-content/plugins/plugin-sigma/vendor/fortawesome/wordpress-fontawesome/admin/src
- /var/www/html/wp-content/plugins/plugin-sigma/vendor/fortawesome/wordpress-fontawesome/integrations
- /var/www/html/wp-content/plugins/plugin-sigma/vendor/fortawesome/wordpress-fontawesome/.git
- /var/www/html/wp-content/plugins/plugin-sigma/vendor/fortawesome/wordpress-fontawesome/assets
- /var/www/html/wp-content/plugins/plugin-sigma/vendor/fortawesome/wordpress-fontawesome/docker
x-integration_env_volumes: &integration_env_volumes
volumes:
- ./integrations/js:/var/www/html/wp-content/js
- ./integrations/themes/theme-alpha:/var/www/html/wp-content/themes/theme-alpha
- ./integrations/themes/theme-mu:/var/www/html/wp-content/themes/theme-mu
- ./integrations/plugins/plugin-beta:/var/www/html/wp-content/plugins/plugin-beta
- ./integrations/plugins/plugin-gamma:/var/www/html/wp-content/plugins/plugin-gamma
- ./integrations/plugins/plugin-delta:/var/www/html/wp-content/plugins/plugin-delta
- ./integrations/plugins/plugin-epsilon:/var/www/html/wp-content/plugins/plugin-epsilon
- ./integrations/plugins/plugin-zeta:/var/www/html/wp-content/plugins/plugin-zeta
- ./integrations/plugins/plugin-eta:/var/www/html/wp-content/plugins/plugin-eta
- ./integrations/plugins/plugin-sigma:/var/www/html/wp-content/plugins/plugin-sigma
- ./integrations/plugins/plugin-lambda:/var/www/html/wp-content/plugins/plugin-lambda
- ./integrations/plugins/plugin-kappa:/var/www/html/wp-content/plugins/plugin-kappa
- ./integrations/plugins/plugin-nu:/var/www/html/wp-content/plugins/plugin-nu
- ./integrations/plugins/font-awesome-cleanup:/var/www/html/wp-content/plugins/font-awesome-cleanup
# ignores (see notes above)
- /var/www/html/wp-content/plugins/plugin-sigma/vendor/fortawesome/wordpress-fontawesome/docs
- /var/www/html/wp-content/plugins/plugin-sigma/vendor/fortawesome/wordpress-fontawesome/bin
- /var/www/html/wp-content/plugins/plugin-sigma/vendor/fortawesome/wordpress-fontawesome/docsrv
- /var/www/html/wp-content/plugins/plugin-sigma/vendor/fortawesome/wordpress-fontawesome/images
- /var/www/html/wp-content/plugins/plugin-sigma/vendor/fortawesome/wordpress-fontawesome/tests
- /var/www/html/wp-content/plugins/plugin-sigma/vendor/fortawesome/wordpress-fontawesome/admin/src
- /var/www/html/wp-content/plugins/plugin-sigma/vendor/fortawesome/wordpress-fontawesome/compat-js/src
- /var/www/html/wp-content/plugins/plugin-sigma/vendor/fortawesome/wordpress-fontawesome/integrations
- /var/www/html/wp-content/plugins/plugin-sigma/vendor/fortawesome/wordpress-fontawesome/.git
- /var/www/html/wp-content/plugins/plugin-sigma/vendor/fortawesome/wordpress-fontawesome/assets
- /var/www/html/wp-content/plugins/plugin-sigma/vendor/fortawesome/wordpress-fontawesome/docker
x-wordpress-defaults: &wordpress_defaults
ports:
- "8765:80"
extra_hosts:
- "dockerhost:169.254.254.254"
command:
- apache2-custom.sh
x-wordpress-dev-defaults: &wordpress_dev_defaults
<<: *wordpress_defaults
services:
wpdb:
image: mariadb:10.5.8
ports:
- "3306:3306"
volumes:
- wpdb_data:/var/lib/mysql
env_file:
- ".env"
container_name: "com.fontawesome.wpdb"
db-5.9:
image: mariadb:10.5.8
ports:
- "3312:3312"
env_file:
- ".env"
environment:
MYSQL_TCP_PORT: 3312
volumes:
- db_data-5.9:/var/lib/mysql
container_name: "com.fontawesome.wpdb-5.9"
db-4.9:
image: mariadb:10.5.8
ports:
- "3309:3309"
env_file:
- ".env"
environment:
MYSQL_TCP_PORT: 3309
volumes:
- db_data-4.9:/var/lib/mysql
container_name: "com.fontawesome.wpdb-4.9"
db-4.8:
image: mariadb:10.5.8
ports:
- "3310:3310"
env_file:
- ".env"
environment:
MYSQL_TCP_PORT: 3310
volumes:
- db_data-4.8:/var/lib/mysql
container_name: "com.fontawesome.wpdb-4.8"
wordpress-latest-dev:
<<:
- *wordpress_defaults
- *dev_env_volumes
depends_on:
- wpdb
image: wordpress-fontawesome-dev-latest
env_file:
- ".env"
- ".env.local"
environment:
WORDPRESS_DB_HOST: wpdb:3306
FONTAWESOME_ENV: development
COMPOSER: ${WP_FA_DIR}/composer.json
container_name: "com.fontawesome.wordpress-latest-dev"
wordpress-php8.1-dev:
<<:
- *wordpress_defaults
- *dev_env_volumes
depends_on:
- wpdb
image: wordpress-fontawesome-dev-php8.1
env_file:
- ".env"
- ".env.local"
environment:
WORDPRESS_DB_HOST: wpdb:3306
FONTAWESOME_ENV: development
COMPOSER: ${WP_FA_DIR}/composer-php8.1.json
container_name: "com.fontawesome.wordpress-php8.1-dev"
wordpress-php8.0-dev:
<<:
- *wordpress_defaults
- *dev_env_volumes
depends_on:
- wpdb
image: wordpress-fontawesome-dev-php8.0
env_file:
- ".env"
- ".env.local"
environment:
WORDPRESS_DB_HOST: wpdb:3306
COMPOSER: ${WP_FA_DIR}/composer-php8.0.json
container_name: "com.fontawesome.wordpress-php8.0-dev"
wordpress-php7.3-dev:
<<:
- *wordpress_defaults
- *dev_env_volumes
depends_on:
- wpdb
image: wordpress-fontawesome-dev-php7.3
env_file:
- ".env"
- ".env.local"
environment:
WORDPRESS_DB_HOST: wpdb:3306
COMPOSER: ${WP_FA_DIR}/composer-php7.3.json
container_name: "com.fontawesome.wordpress-php7.3-dev"
wordpress-php7.4-dev:
<<:
- *wordpress_defaults
- *dev_env_volumes
depends_on:
- wpdb
image: wordpress-fontawesome-dev-php7.4
env_file:
- ".env"
- ".env.local"
environment:
WORDPRESS_DB_HOST: wpdb:3306
COMPOSER: ${WP_FA_DIR}/composer-php7.4.json
container_name: "com.fontawesome.wordpress-php7.4-dev"
wordpress-php8.3-dev:
<<:
- *wordpress_defaults
- *dev_env_volumes
depends_on:
- wpdb
image: wordpress-fontawesome-dev-php8.3
env_file:
- ".env"
- ".env.local"
environment:
WORDPRESS_DB_HOST: wpdb:3306
COMPOSER: ${WP_FA_DIR}/composer-php8.3.json
container_name: "com.fontawesome.wordpress-php8.3-dev"
wordpress-php7.2-dev:
<<:
- *wordpress_defaults
- *dev_env_volumes
depends_on:
- wpdb
image: wordpress-fontawesome-dev-php7.2
env_file:
- ".env"
- ".env.local"
environment:
WORDPRESS_DB_HOST: wpdb:3306
COMPOSER: ${WP_FA_DIR}/composer-php7.2.json
container_name: "com.fontawesome.wordpress-php7.2-dev"
wordpress-php7.1-dev:
<<:
- *wordpress_defaults
- *dev_env_volumes
depends_on:
- wpdb
image: wordpress-fontawesome-dev-php7.1
env_file:
- ".env"
- ".env.local"
environment:
WORDPRESS_DB_HOST: wpdb:3306
COMPOSER: ${WP_FA_DIR}/composer-php7.1.json
container_name: "com.fontawesome.wordpress-php7.1-dev"
wordpress-php5.6-dev:
<<:
- *wordpress_defaults
- *dev_env_volumes
depends_on:
- wpdb
image: wordpress-fontawesome-dev-php5.6
env_file:
- ".env"
- ".env.local"
environment:
WORDPRESS_DB_HOST: wpdb:3306
COMPOSER: ${WP_FA_DIR}/composer-php5.6.json
container_name: "com.fontawesome.wordpress-php5.6-dev"
wordpress-latest-integration:
<<:
- *wordpress_defaults
- *integration_env_volumes
depends_on:
- wpdb
image: wordpress-fontawesome-dev-latest
env_file:
- ".env"
- ".env.local"
environment:
FONTAWESOME_ENV: production
WORDPRESS_DB_HOST: wpdb:3306
container_name: "com.fontawesome.wordpress-latest-integration"
wordpress-5.0-dev:
<<:
- *wordpress_defaults
- *dev_env_volumes
depends_on:
- wpdb
image: wordpress-fontawesome-dev-5.0
env_file:
- ".env"
- ".env.local"
environment:
WORDPRESS_DB_HOST: wpdb:3306
COMPOSER: ${WP_FA_DIR}/composer-wp5.0.json
container_name: "com.fontawesome.wordpress-5.0-dev"
wordpress-5.4-dev:
<<:
- *wordpress_defaults
- *dev_env_volumes
depends_on:
- wpdb
image: wordpress-fontawesome-dev-5.4
env_file:
- ".env"
- ".env.local"
environment:
WORDPRESS_DB_HOST: wpdb:3306
COMPOSER: ${WP_FA_DIR}/composer.json
container_name: "com.fontawesome.wordpress-5.4-dev"
wordpress-6.0-dev:
<<:
- *wordpress_defaults
- *dev_env_volumes
depends_on:
- wpdb
image: wordpress-fontawesome-dev-6.0
env_file:
- ".env"
- ".env.local"
environment:
WORDPRESS_DB_HOST: wpdb:3306
COMPOSER: ${WP_FA_DIR}/composer-wp6.0.json
container_name: "com.fontawesome.wordpress-6.0-dev"
wordpress-5.0-integration:
<<:
- *wordpress_defaults
- *integration_env_volumes
image: wordpress-fontawesome-dev-5.0
depends_on:
- wpdb
env_file:
- ".env"
- ".env.local"
environment:
FONTAWESOME_ENV: production
WORDPRESS_DB_HOST: wpdb:3306
container_name: "com.fontawesome.wordpress-5.0-integration"
wordpress-5.4-integration:
<<:
- *wordpress_defaults
- *integration_env_volumes
image: wordpress-fontawesome-dev-5.4
depends_on:
- wpdb
env_file:
- ".env"
- ".env.local"
environment:
FONTAWESOME_ENV: production
WORDPRESS_DB_HOST: wpdb:3306
container_name: "com.fontawesome.wordpress-5.4-integration"
wordpress-4.9-dev:
<<:
- *wordpress_defaults
- *dev_env_volumes
image: wordpress-fontawesome-dev-4.9
depends_on:
- db-4.9
env_file:
- ".env"
- ".env.local"
environment:
WORDPRESS_DB_HOST: db-4.9:3309
COMPOSER: ${WP_FA_DIR}/composer-wp4.9.json
container_name: "com.fontawesome.wordpress-4.9-dev"
wordpress-4.9-integration:
<<:
- *wordpress_defaults
- *integration_env_volumes
image: wordpress-fontawesome-dev-4.9
depends_on:
- db-4.9
env_file:
- ".env"
- ".env.local"
environment:
FONTAWESOME_ENV: production
WORDPRESS_DB_HOST: db-4.9:3309
container_name: "com.fontawesome.wordpress-4.9-integration"
wordpress-4.7-dev:
<<:
- *wordpress_defaults
- *dev_env_volumes
image: wordpress-fontawesome-dev-4.7
depends_on:
- wpdb
env_file:
- ".env"
- ".env.local"
environment:
WORDPRESS_DB_HOST: wpdb:3306
container_name: "com.fontawesome.wordpress-4.7-dev"
wordpress-4.7-integration:
<<:
- *wordpress_defaults
- *integration_env_volumes
image: wordpress-fontawesome-dev-4.7
depends_on:
- wpdb
env_file:
- ".env"
- ".env.local"
environment:
FONTAWESOME_ENV: production
WORDPRESS_DB_HOST: wpdb:3306
container_name: "com.fontawesome.wordpress-4.7-integration"
wordpress-4.8-dev:
<<:
- *wordpress_defaults
- *dev_env_volumes
image: wordpress-fontawesome-dev-4.8
depends_on:
- db-4.8
env_file:
- ".env"
- ".env.local"
environment:
WORDPRESS_DB_HOST: db-4.8:3310
container_name: "com.fontawesome.wordpress-4.8-dev"
wordpress-4.8-integration:
<<:
- *wordpress_defaults
- *integration_env_volumes
image: wordpress-fontawesome-dev-4.8
depends_on:
- db-4.8
env_file:
- ".env"
- ".env.local"
environment:
FONTAWESOME_ENV: production
WORDPRESS_DB_HOST: db-4.8:3310
container_name: "com.fontawesome.wordpress-4.8-integration"
volumes:
wpdb_data:
db_data-4.8:
db_data-4.9:
db_data-5.9:
db_data-6.0: