-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (35 loc) · 994 Bytes
/
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
version: '2.2'
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
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}