-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
executable file
·58 lines (55 loc) · 1.72 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
55
56
57
58
version: "3.5"
services:
### PHP-FPM ##############################################
php-fpm:
environment:
- TZ=Asia/Shanghai
build:
context: ./php-fpm
args:
- PHP_VERSION=${PHP_VERSION}
- INSTALL_SOAP=${INSTALL_SOAP}
- INSTALL_ZIP_ARCHIVE=${INSTALL_ZIP_ARCHIVE}
- INSTALL_BCMATH=${INSTALL_BCMATH}
- INSTALL_OPCACHE=${INSTALL_OPCACHE}
- INSTALL_EXIF=${INSTALL_EXIF}
- INSTALL_MYSQLI=${INSTALL_MYSQLI}
- INSTALL_INTL=${INSTALL_INTL}
- INSTALL_GHOSTSCRIPT=${INSTALL_GHOSTSCRIPT}
- INSTALL_IMAGEMAGICK=${INSTALL_IMAGEMAGICK}
- INSTALL_MCRYPT=${INSTALL_MCRYPT}
- INSTALL_REDIS=${INSTALL_REDIS}
- INSTALL_SWOOLE=${INSTALL_SWOOLE}
volumes:
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
# - ./php-fpm/conf/php${PHP_VERSION}.ini:/usr/local/etc/php/php.ini
### nginx Server #########################################
nginx:
build:
context: ./nginx
args:
- NGINX_VERSION=${NGINX_VERSION}
- PHP_UPSTREAM_CONTAINER=${PHP_UPSTREAM_CONTAINER}
- PHP_UPSTREAM_PORT=${PHP_UPSTREAM_PORT}
volumes:
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
- ${NGINX_HOST_LOG_PATH}:/var/log/nginx
- ${NGINX_SITES_PATH}:/etc/nginx/vhost
ports:
- ${NGINX_HOST_HTTP_PORT}:80
depends_on:
- php-fpm
links:
- php-fpm
### redis Server #########################################
redis:
build:
context: ./redis
args:
- REDIS_VERSION=${REDIS_VERSION}
- REDIS_DOWNLOAD_SHA=${REDIS_DOWNLOAD_SHA}
- GOSU_VERSION=${GOSU_VERSION}
ports:
- ${REDIS_HOST_HTTP_PORT}:6379
depends_on:
- nginx