File tree 4 files changed +54
-3
lines changed
4 files changed +54
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ services:
12
12
links :
13
13
- mysql:mysql
14
14
15
- # 7.2
15
+ # 7.1
16
16
php7 :
17
17
build : ./php7
18
18
depends_on :
@@ -29,6 +29,21 @@ services:
29
29
- redis:redis
30
30
# extra_hosts:
31
31
# - 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
+
32
47
nginx :
33
48
build : ./nginx
34
49
depends_on :
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -33,8 +33,7 @@ RUN curl 'http://pecl.php.net/get/redis-4.0.2.tgz' -o redis.tgz \
33
33
&& pecl install swoole.tgz \
34
34
&& curl 'http://pecl.php.net/get/imagick-3.4.3.tgz' -o imagick.tgz\
35
35
&& 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
38
37
39
38
RUN docker-php-ext-install mysqli pdo_mysql opcache\
40
39
&& curl -sS https://getcomposer.org/installer | php \
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments