-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (50 loc) · 1.25 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
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-source: &volume-source '.:/usr/src/attempts-counter'
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'
image: 'attempts-counter-5.6'
volumes:
- *volume-composer-cache
- *volume-source
- 'vendor-5.6:/usr/src/attempts-counter/vendor'
'7.4':
<<: *defaults
build:
<<: *build
args:
PHP_VERSION: '7.4-cli'
image: 'attempts-counter-7.4'
volumes:
- *volume-composer-cache
- *volume-source
- *volume-xdebug-3-config
- 'vendor-7.4:/usr/src/attempts-counter/vendor'
'8.1':
<<: *defaults
build:
<<: *build
args:
PHP_VERSION: '8.1-cli'
image: 'attempts-counter-8.1'
volumes:
- *volume-composer-cache
- *volume-source
- *volume-xdebug-3-config
- 'vendor-8.1:/usr/src/attempts-counter/vendor'
volumes:
vendor-5.6:
vendor-7.4:
vendor-8.1: