Permalink
Browse files

Adds FPM env var configuration; Removes CMD since it does not read in…

…jected env var values
  • Loading branch information...
jtreminio committed Nov 15, 2018
1 parent 6b8c551 commit 05c6a32e023e4095081620a6493c6da4a2823ce5
Showing with 26 additions and 19 deletions.
  1. +0 −2 Dockerfile-5.6
  2. +0 −2 Dockerfile-7.0
  3. +0 −2 Dockerfile-7.1
  4. +0 −2 Dockerfile-7.2
  5. +12 −0 Dockerfile-env
  6. +14 −11 files/fpm.conf
@@ -153,5 +153,3 @@ RUN chmod +x /usr/bin/php-fpm &&\
WORKDIR /etc/php/${PHP_VER}

EXPOSE 9000

CMD /usr/bin/php-fpm
@@ -154,5 +154,3 @@ RUN chmod +x /usr/bin/php-fpm &&\
WORKDIR /etc/php/${PHP_VER}

EXPOSE 9000

CMD /usr/bin/php-fpm
@@ -154,5 +154,3 @@ RUN chmod +x /usr/bin/php-fpm &&\
WORKDIR /etc/php/${PHP_VER}

EXPOSE 9000

CMD /usr/bin/php-fpm
@@ -153,5 +153,3 @@ RUN chmod +x /usr/bin/php-fpm &&\
WORKDIR /etc/php/${PHP_VER}

EXPOSE 9000

CMD /usr/bin/php-fpm
@@ -659,3 +659,15 @@ ENV PHP.allow_url_fopen=1 \
PHP.zlib.output_compression= \
PHP.zlib.output_compression_level=-1 \
PHP.zlib.output_handler= \
\
FPM.access.format="%R - %u %t \"%m %r\" %s" \
FPM.listen.backlog=511 \
FPM.listen.mode=0660 \
FPM.pm=dynamic \
FPM.pm.max_children=5 \
FPM.pm.start_servers=2 \
FPM.pm.min_spare_servers=1 \
FPM.pm.max_spare_servers=3 \
FPM.pm.process_idle_timeout=10s \
FPM.pm.max_requests=0 \
FPM.security.limit_extensions=.php \
@@ -6,14 +6,17 @@ error_log = /proc/self/fd/2

[www]
listen = "0.0.0.0:9000"
; Redirect logs to stdout - FPM closes /dev/std* on startup
access.log = /proc/self/fd/2
catch_workers_output = yes
; Required to allow config-by-environment
clear_env = no
pm = "dynamic"
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
security.limit_extensions = ".php"
listen.backlog = ${FPM.listen.backlog}
listen.owner = ${FPM.listen.owner}
listen.group = ${FPM.listen.group}
listen.mode = ${FPM.listen.mode}

pm = ${FPM.pm}
pm.max_children = ${FPM.pm.max_children}
pm.start_servers = ${FPM.pm.start_servers}
pm.min_spare_servers = ${FPM.pm.min_spare_servers}
pm.max_spare_servers = ${FPM.pm.max_spare_servers}
pm.process_idle_timeout = ${FPM.pm.process_idle_timeout}
pm.max_requests = ${FPM.pm.max_requests}

security.limit_extensions = ${FPM.security.limit_extensions}

0 comments on commit 05c6a32

Please sign in to comment.