Skip to content

Commit bd0f330

Browse files
author
张俊杰
committed
添加php7.2.13版本
1 parent c666522 commit bd0f330

File tree

4 files changed

+54
-3
lines changed

4 files changed

+54
-3
lines changed

docker-compose.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ services:
1212
links:
1313
- mysql:mysql
1414

15-
#7.2
15+
#7.1
1616
php7:
1717
build: ./php7
1818
depends_on:
@@ -29,6 +29,21 @@ services:
2929
- redis:redis
3030
#extra_hosts:
3131
# - dockerhost:$DOCKERHOST
32+
33+
#7.2
34+
php7.2:
35+
build: ./php7.2
36+
depends_on:
37+
- mysql
38+
- redis
39+
ports:
40+
- 9088:9000
41+
volumes:
42+
- ./www/:/www/
43+
links:
44+
- mysql:mysql
45+
- redis:redis
46+
3247
nginx:
3348
build: ./nginx
3449
depends_on:

php7.2/Dockerfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
FROM php:7.2.13-fpm
2+
RUN apt-get update
3+
RUN apt-get install -y \
4+
libfreetype6-dev \
5+
libjpeg62-turbo-dev \
6+
libmcrypt-dev \
7+
libpng-dev \
8+
libxml2-dev \
9+
libmagickwand-dev \
10+
libmagickcore-dev \
11+
libgmp-dev \
12+
libzip-dev \
13+
libevent-dev \
14+
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
15+
&& docker-php-ext-install -j$(nproc) gd \
16+
&& docker-php-ext-install -j$(nproc) bcmath mysqli pdo_mysql opcache \
17+
&& curl -sS https://getcomposer.org/installer | php \
18+
&& mv /var/www/html/composer.phar /usr/local/bin/composer \
19+
&& composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
20+
21+
22+
RUN pecl install redis-5.3.2 \
23+
&& pecl install swoole-4.4.8 \
24+
&& pecl install imagick-3.4.4 \
25+
&& pecl install grpc-1.33.1 \
26+
&& pecl install zip \
27+
&& docker-php-ext-enable imagick redis swoole grpc zip

php7/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ RUN curl 'http://pecl.php.net/get/redis-4.0.2.tgz' -o redis.tgz \
3333
&& pecl install swoole.tgz \
3434
&& curl 'http://pecl.php.net/get/imagick-3.4.3.tgz' -o imagick.tgz\
3535
&& pecl install imagick.tgz \
36-
&& pecl install grpc \
37-
&& docker-php-ext-enable imagick redis xdebug swoole gmp grpc
36+
&& docker-php-ext-enable imagick redis xdebug swoole gmp
3837

3938
RUN docker-php-ext-install mysqli pdo_mysql opcache\
4039
&& curl -sS https://getcomposer.org/installer | php \

php7/conf.d/xdubg.conf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#远程调试IP
2+
xdebug.remote_host= 10.0.1.1
3+
#请求端口
4+
xdebug.remote_port = 9123
5+
#约定的调试key
6+
xdebug.idekey = PHPSTORM
7+
#日志目录
8+
xdebug.remote_log='/www/xdebug_php7.log'
9+
#开启
10+
xdebug.remote_enable = 0

0 commit comments

Comments
 (0)