-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathdocker-compose.yml
36 lines (31 loc) · 1.02 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
version: '2'
networks:
default:
services:
php-min:
build:
dockerfile: Dockerfile-${DOCKERFILE_FLAVOUR}
context: .
target: min
args:
- PHP_BASE_IMAGE_VERSION
- PECL_IMAGICK_INSTALL_SUFFIX
image: ${PHP_IMAGE_NAME}:${PHP_BASE_IMAGE_VERSION}${PHP_IMAGE_VERSION_SUFFIX}-min
environment:
- GITHUB_API_TOKEN=${GITHUB_API_TOKEN}
- PHP_ENABLE_XDEBUG
- TEST_RUNTIME_PATH=/tmp/runtime
volumes:
- ./tests:/tests:delegated
# Framework testing
- ./_host-volumes/yii-dev-tool:/yii-dev-tool:delegated
# Application testing
- ./_host-volumes/app:/app:delegated
# Composer cache
- ~/.composer-docker/cache:/root/.composer/cache:delegated
php-dev:
extends:
service: php-min
build:
target: dev
image: ${PHP_IMAGE_NAME}:${PHP_BASE_IMAGE_VERSION}${PHP_IMAGE_VERSION_SUFFIX}