File tree Expand file tree Collapse file tree 4 files changed +92
-34
lines changed Expand file tree Collapse file tree 4 files changed +92
-34
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ Compose 是一个工具,定义和运行复杂Docker应用。使用Compose,
2121php5.6|registry.cn-shanghai.aliyuncs.com/ibaotu/php
2222php7.1|registry.cn-shanghai.aliyuncs.com/ibaotu/php7.1
2323php7.2|registry.cn-shanghai.aliyuncs.com/ibaotu/php7.2
24+ php8.1.4|registry.cn-shanghai.aliyuncs.com/ibaotu/php8.1.4
2425
25261 . [ 下载发布文件] ( https://github.com/zhangjunjie6b/phpdocker/releases )
26272 . 启动 docker-compose
@@ -297,6 +298,56 @@ zlib
297298Zend OPcache
298299```
299300
301+ php8.1.4
302+ ```
303+ [PHP Modules]
304+ bcmath
305+ Core
306+ ctype
307+ curl
308+ date
309+ dom
310+ fileinfo
311+ filter
312+ ftp
313+ gd
314+ grpc
315+ hash
316+ iconv
317+ imagick
318+ json
319+ libxml
320+ mbstring
321+ mysqli
322+ mysqlnd
323+ openssl
324+ pcre
325+ PDO
326+ pdo_mysql
327+ pdo_sqlite
328+ Phar
329+ posix
330+ readline
331+ redis
332+ Reflection
333+ session
334+ SimpleXML
335+ sodium
336+ SPL
337+ sqlite3
338+ standard
339+ tokenizer
340+ xml
341+ xmlreader
342+ xmlwriter
343+ Zend OPcache
344+ zip
345+ zlib
346+
347+ [Zend Modules]
348+ Zend OPcache
349+ ```
350+
300351### redis
301352
302353> 版本3.2.11 注:线上redis版本2.8
Original file line number Diff line number Diff line change @@ -61,7 +61,20 @@ services:
6161 links :
6262 - php:php
6363 - php7:php7
64-
64+ -
65+ # php8.1.4
66+ php8.1.4 :
67+ build : ./php8.1.4
68+ depends_on :
69+ - mysql
70+ - redis
71+ ports :
72+ - 9089:9000
73+ volumes :
74+ - ./www/:/www/
75+ links :
76+ - mysql:mysql
77+ - redis:redis
6578 # 5.6
6679 mysql :
6780 build : ./mysql
Original file line number Diff line number Diff line change 1+ FROM php:8.1.4-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+ RUN pecl install redis-5.3.7 \
22+ && pecl install imagick 3.7.0 \
23+ && pecl install zip
24+
25+ RUN pecl install grpc 1.33.0 \
26+ && docker-php-ext-enable imagick redis grpc zip
27+
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments