forked from php-etl/pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (55 loc) · 1.45 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
version: '2'
services:
sh:
build:
context: .docker/[email protected]/cli
user: docker:docker
volumes:
- ./.docker/[email protected]/cli/config/memory.ini:/usr/local/etc/php/conf.d/memory.ini:ro
- ./:/var/www/html
restart: "no"
sh-xdebug:
build:
context: .docker/[email protected]/cli-xdebug
user: docker:docker
volumes:
- ./.docker/[email protected]/cli-xdebug/config/memory.ini:/usr/local/etc/php/conf.d/memory.ini:ro
- ./.docker/[email protected]/cli-xdebug/config/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini:ro
- ./:/var/www/html
restart: "no"
composer:
extends:
service: sh
volumes:
- composer:/opt/docker/.composer/:cached
environment:
COMPOSER_AUTH: '{"github-oauth":{"github.com": "d5477b3328aed0f69979cb7bda92ff2d66db36ea"}}'
entrypoint: [ "composer" ]
restart: "no"
phpunit:
extends:
service: sh
entrypoint: [ "vendor/bin/phpunit", "--configuration=.phpunit.xml" ]
restart: "no"
phpunit-xdebug:
extends:
service: sh-xdebug
entrypoint: [ "vendor/bin/phpunit", "--configuration=.phpunit.xml" ]
restart: "no"
phpspec:
extends:
service: sh
entrypoint: [ "vendor/bin/phpspec" ]
restart: "no"
phpspec-xdebug:
extends:
service: sh-xdebug
entrypoint: [ "vendor/bin/phpspec" ]
restart: "no"
volumes:
composer:
driver: local
driver_opts:
type: tmpfs
device: tmpfs
o: "size=2048m,uid=1000,gid=1000"