forked from dmstr/docker-php-yii2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·41 lines (38 loc) · 988 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
38
39
40
41
version: '2'
services:
php:
build:
dockerfile: Dockerfile-fpm
context: 'php-7.0'
args:
- GITHUB_API_TOKEN=${GITHUB_API_TOKEN}
image: ${STACK_PHP_IMAGE}
environment:
- GITHUB_API_TOKEN=${GITHUB_API_TOKEN}
- PHP_ENABLE_XDEBUG=${PHP_ENABLE_XDEBUG}
volumes:
- ./test:/test
php-nginx:
build:
dockerfile: Dockerfile-fpm-nginx
context: 'nginx'
image: ${STACK_PHP_IMAGE}-nginx
environment:
- PHP_ENABLE_XDEBUG=${PHP_ENABLE_XDEBUG}
php-alpine:
build:
dockerfile: Dockerfile-fpm-alpine
context: 'php-7.0'
image: ${STACK_PHP_IMAGE}-alpine
volumes:
- ./test:/test
php-alpine-nginx:
build:
dockerfile: Dockerfile-fpm-alpine-nginx
context: 'nginx'
image: ${STACK_PHP_IMAGE}-alpine-nginx
php-alpine-nginx-xdebug:
build:
dockerfile: Dockerfile-fpm-alpine-nginx-xdebug
context: 'nginx'
image: ${STACK_PHP_IMAGE}-alpine-nginx-xdebug