-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update settings so they use env vars (#147)
* Add php & php-fpm config via env vars * Add pid file location to supervisord config, moved to conf dir * Add env vars and copying of conf files
- Loading branch information
Showing
4 changed files
with
51 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
; File overwrites the original values with environment variables | ||
[www] | ||
pm = ${PHP_FPM_PM} | ||
pm.max_children = ${PHP_FPM_PM_MAX_CHILDREN} | ||
pm.start_servers = ${PHP_FPM_PM_START_SERVERS} | ||
pm.min_spare_servers = ${PHP_FPM_PM_MIN_SPARE_SERVERS} | ||
pm.max_spare_servers = ${PHP_FPM_PM_MAX_SPARE_SERVERS} | ||
pm.max_requests = ${PHP_FPM_PM_MAX_REQUESTS} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
memory_limit = ${PHP_MEMORY_LIMIT} | ||
max_execution_time = ${PHP_MAX_EXECUTION_TIME} | ||
error_reporting = ${PHP_ERROR_REPORTING} | ||
display_errors = ${PHP_DISPLAY_ERRORS} | ||
display_startup_errors = ${PHP_DISPLAY_STARTUP_ERRORS} | ||
post_max_size = ${PHP_POST_MAX_SIZE} | ||
upload_max_filesize = ${PHP_UPLOAD_MAX_FILESIZE} | ||
|
||
opcache.enable = ${OPCACHE_ENABLE} | ||
opcache.enable_cli = ${OPCACHE_ENABLE_CLI} | ||
opcache.memory_consumption = ${OPCACHE_MEMORY_CONSUMPTION} | ||
opcache.max_accelerated_files = ${OPCACHE_MAX_ACCELERATED_FILES} | ||
opcache.validate_timestamps = ${OPCACHE_VALIDATE_TIMESTAMPS} | ||
opcache.consistency_checks = ${OPCACHE_CONSISTENCY_CHECKS} |
1 change: 1 addition & 0 deletions
1
files/supervisord.conf → files/conf/supervisord/supervisord.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters