-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
104 lines (99 loc) · 2.67 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
version: '3.8'
x-build: &build
context: '.'
x-defaults: &defaults
restart: 'unless-stopped'
tty: true
x-volume-composer-cache: &volume-composer-cache './docker/composer/cache:/root/.composer/cache'
x-volume-runkit-config: &volume-runkit-config './docker/php/conf.d/runkit.ini:/usr/local/etc/php/conf.d/runkit.ini'
x-volume-runkit7-config: &volume-runkit7-config './docker/php/conf.d/runkit7.ini:/usr/local/etc/php/conf.d/runkit7.ini'
x-volume-source: &volume-source '.:/usr/src/yii2-json-editor'
x-volume-xdebug-3-config:
&volume-xdebug-3-config './docker/php/conf.d/xdebug-3.ini:/usr/local/etc/php/conf.d/xdebug.ini'
services:
'5.6':
<<: *defaults
build:
<<: *build
args:
PHP_VERSION: '5.6-cli'
target: 'debian-runkit'
image: 'yii2-json-editor-5.6'
volumes:
- *volume-composer-cache
- *volume-runkit-config
- *volume-source
- 'vendor-5.6:/usr/src/yii2-json-editor/vendor'
'5.6-alpine':
<<: *defaults
build:
<<: *build
args:
PHP_VERSION: '5.6-cli-alpine'
target: 'alpine'
image: 'yii2-json-editor-5.6-alpine'
volumes:
- *volume-composer-cache
- *volume-source
- 'vendor-5.6-alpine:/usr/src/yii2-json-editor/vendor'
'7.4':
<<: *defaults
build:
<<: *build
args:
PHP_VERSION: '7.4-cli'
target: 'debian-runkit7'
image: 'yii2-json-editor-7.4'
volumes:
- *volume-composer-cache
- *volume-runkit7-config
- *volume-source
- *volume-xdebug-3-config
- 'vendor-7.4:/usr/src/yii2-json-editor/vendor'
'7.4-alpine':
<<: *defaults
build:
<<: *build
args:
PHP_VERSION: '7.4-cli-alpine'
target: 'alpine'
image: 'yii2-json-editor-7.4-alpine'
volumes:
- *volume-composer-cache
- *volume-source
- *volume-xdebug-3-config
- 'vendor-7.4-alpine:/usr/src/yii2-json-editor/vendor'
'8.1':
<<: *defaults
build:
<<: *build
args:
PHP_VERSION: '8.1-cli'
target: 'debian-runkit7'
image: 'yii2-json-editor-8.1'
volumes:
- *volume-composer-cache
- *volume-runkit7-config
- *volume-source
- *volume-xdebug-3-config
- 'vendor-8.1:/usr/src/yii2-json-editor/vendor'
'8.1-alpine':
<<: *defaults
build:
<<: *build
args:
PHP_VERSION: '8.1-cli-alpine'
target: 'alpine'
image: 'yii2-json-editor-8.1-alpine'
volumes:
- *volume-composer-cache
- *volume-source
- *volume-xdebug-3-config
- 'vendor-8.1-alpine:/usr/src/yii2-json-editor/vendor'
volumes:
vendor-5.6:
vendor-5.6-alpine:
vendor-7.4:
vendor-7.4-alpine:
vendor-8.1:
vendor-8.1-alpine: