-
-
Notifications
You must be signed in to change notification settings - Fork 202
/
docker-compose.yml
42 lines (38 loc) · 1.03 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
version: '2.2'
networks:
default:
services:
php-min:
build:
dockerfile: Dockerfile-${DOCKERFILE_FLAVOUR}
context: 'php'
target: min
args:
- PHP_BASE_IMAGE_VERSION
- X_LEGACY_GD_LIB
- PECL_XDEBUG_INSTALL_SUFFIX
- PECL_MONGODB_INSTALL_SUFFIX
- 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/yii2:/yii2:delegated
# Application testing
- ./_host-volumes/app:/app:delegated
# Composer cache
- ~/.composer-docker/cache:/root/.composer/cache:delegated
networks:
default:
aliases:
- php
php-dev:
extends:
service: php-min
build:
target: dev
image: ${PHP_IMAGE_NAME}:${PHP_BASE_IMAGE_VERSION}${PHP_IMAGE_VERSION_SUFFIX}