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
johndoe12312 committed Jul 23, 2024
1 parent 52e9192 commit f4043e8
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_PORT 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 = 127.0.0.1:${PHP_FPM_PORT}
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 f4043e8

Please sign in to comment.