-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (52 loc) · 1.37 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
43
44
45
46
47
48
49
50
51
52
53
54
version: "3"
services:
nginx:
image: nginx:${NGINX_VERSION}
ports:
- "${NGINX_HTTP_HOST_PORT}:80"
volumes:
- ${SOURCE_DIR}:/var/www/html/:rw
- ${NGINX_CONFD_DIR}:/etc/nginx/conf.d/:rw
- ${NGINX_CONF_FILE}:/etc/nginx/nginx.conf:ro
- ${NGINX_LOG_DIR}:/var/log/nginx/:rw
restart: always
networks:
- default
php72:
build:
context: .
args:
PHP_VERSION: ${PHP72_VERSION}
PHP_XDEBUG: ${PHP72_XDEBUG}
PHP_SWOOLE: ${PHP72_SWOOLE}
PHP_REDIS: ${PHP72_REDIS}
REPLACE_SOURCE_LIST: ${REPLACE_SOURCE_LIST}
volumes:
- ${SOURCE_DIR}:/var/www/html/:rw
- ${PHP72_PHP_CONF_FILE}:/usr/local/etc/php/php.ini:ro
- ${PHP72_FPM_CONF_FILE}:/usr/local/etc/php-fpm.d/www.conf:rw
restart: always
cap_add:
- SYS_PTRACE
networks:
- default
php56:
build:
context: .
args:
PHP_VERSION: ${PHP56_VERSION}
PHP_XDEBUG: ${PHP56_XDEBUG}
PHP_SWOOLE: ${PHP56_SWOOLE}
PHP_REDIS: ${PHP56_REDIS}
REPLACE_SOURCE_LIST: ${REPLACE_SOURCE_LIST}
volumes:
- ${SOURCE_DIR}:/var/www/html/:rw
- ${PHP56_PHP_CONF_FILE}:/usr/local/etc/php/php.ini:ro
- ${PHP56_FPM_CONF_FILE}:/usr/local/etc/php-fpm.d/www.conf:rw
restart: always
cap_add:
- SYS_PTRACE
networks:
- default
networks:
default: