-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (30 loc) · 870 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (30 loc) · 870 Bytes
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
services:
php:
build: .
volumes:
- ./:/app
install:
build: .
volumes:
- ./:/app
command: sh -c "git config --global --add safe.directory /app && composer install"
phpunit:
build: .
volumes:
- ./:/app
command: sh -c "git config --global --add safe.directory /app && composer run phpunit"
test:
build: .
volumes:
- ./:/app
command: sh -c "git config --global --add safe.directory /app && composer run tests"
fixcs:
build: .
volumes:
- ./:/app
command: sh -c "git config --global --add safe.directory /app && composer run fix-cs"
debug:
build: .
volumes:
- ./:/app
command: sh -c "mv /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini.disabled /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini 2>/dev/null || true; php -dxdebug.mode=debug -dpcov.enabled=0 $@"