Skip to content

Commit

Permalink
Add FPM port override via ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
mtisaut authored and brusch committed Jul 23, 2024
1 parent dd849a8 commit d617edd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ ENV OPCACHE_VALIDATE_TIMESTAMPS 1
ENV OPCACHE_CONSISTENCY_CHECKS 0

# fpm settings
ENV PHP_FPM_LISTEN 127.0.0.1:9000
ENV PHP_FPM_PM dynamic
ENV PHP_FPM_PM_MAX_CHILDREN 5
ENV PHP_FPM_PM_START_SERVERS 2
Expand Down
1 change: 1 addition & 0 deletions files/conf/php-fpm/php-fpm.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
; File overwrites the original values with environment variables
[www]
listen = ${PHP_FPM_LISTEN}
pm = ${PHP_FPM_PM}
pm.max_children = ${PHP_FPM_PM_MAX_CHILDREN}
pm.start_servers = ${PHP_FPM_PM_START_SERVERS}
Expand Down

0 comments on commit d617edd

Please sign in to comment.