Skip to content

Commit

Permalink
feat: 添加配置文件
Browse files Browse the repository at this point in the history
  • Loading branch information
twbworld committed Jul 24, 2023
1 parent f02df4c commit 5945220
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ ARG PHALCON_VERSION=4.1.2 \
PSR_VERSION=1.0.0 \
PHALCON_EXT_PATH=php7/64bits

COPY php.ini /usr/local/etc/php/
COPY www.conf /usr/local/etc/php-fpm.d/

# 安装php扩展: https://www.jianshu.com/p/20fcca06e27e
RUN set -xe \
&& apt-get update \
Expand Down
6 changes: 6 additions & 0 deletions php.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
date.timezone = Asia/Shanghai
error_reporting=E_ALL&~E_NOTICE
log_errors = On
error_log = /var/www/logs/error.log
output_buffering = 10240000
expose_php=off
10 changes: 10 additions & 0 deletions www.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[www]
user = www-data
group = www-data
listen = 127.0.0.1:9000
pm = dynamic
pm.max_children = 100
pm.start_servers = 20
pm.min_spare_servers = 10
pm.max_spare_servers = 50
pm.max_requests = 500

0 comments on commit 5945220

Please sign in to comment.