Sane defaults for php.ini

This commit is contained in:
cytopia
2018-07-28 10:55:57 +02:00
parent b66ddfbd3e
commit 1b6799da58
58 changed files with 680 additions and 29 deletions

View File

@@ -56,6 +56,7 @@ RUN set -x \
###
### Copy files
###
COPY ./data/php.d/php-5.3.ini /usr/local/etc/php/conf.d/yyy-devilbox-01-base.ini
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf

View File

@@ -56,6 +56,7 @@ RUN set -x \
###
### Copy files
###
COPY ./data/php.d/php-5.4.ini /usr/local/etc/php/conf.d/yyy-devilbox-01-base.ini
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf

View File

@@ -56,6 +56,7 @@ RUN set -x \
###
### Copy files
###
COPY ./data/php.d/php-5.5.ini /usr/local/etc/php/conf.d/yyy-devilbox-01-base.ini
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf

View File

@@ -56,6 +56,7 @@ RUN set -x \
###
### Copy files
###
COPY ./data/php.d/php-5.6.ini /usr/local/etc/php/conf.d/yyy-devilbox-01-base.ini
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf

View File

@@ -56,6 +56,7 @@ RUN set -x \
###
### Copy files
###
COPY ./data/php.d/php-7.0.ini /usr/local/etc/php/conf.d/yyy-devilbox-01-base.ini
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf

View File

@@ -56,6 +56,7 @@ RUN set -x \
###
### Copy files
###
COPY ./data/php.d/php-7.1.ini /usr/local/etc/php/conf.d/yyy-devilbox-01-base.ini
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf

View File

@@ -56,6 +56,7 @@ RUN set -x \
###
### Copy files
###
COPY ./data/php.d/php-7.2.ini /usr/local/etc/php/conf.d/yyy-devilbox-01-base.ini
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf

View File

@@ -56,6 +56,7 @@ RUN set -x \
###
### Copy files
###
COPY ./data/php.d/php-7.3.ini /usr/local/etc/php/conf.d/yyy-devilbox-01-base.ini
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf

View File

@@ -0,0 +1,42 @@
; ############################################################
; # Devilbox PHP defaults for all Docker images
; ############################################################
; This php.ini is applied to the base container and inherited
; by every image built on top of it.
; Note that prod and work images overwrite specific settings
; for their use-case.
[PHP]
; Memory
memory_limit = 512M
; Timeouts
max_execution_time = 180
max_input_time = 180
; Uploads
post_max_size = 256M
upload_max_filesize = 256M
max_file_uploads = 20
; Vars
variables_order = EGPCS
max_input_vars = 8000
max_input_nesting_level = 64
; Error reporting
; Note: error_log is dynamic and handled during start to set appropriate setting
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
xmlrpc_errors = Off
report_memleaks = On
display_errors = Off
display_startup_errors = Off
track_errors = On
log_errors = On

View File

@@ -0,0 +1,42 @@
; ############################################################
; # Devilbox PHP defaults for all Docker images
; ############################################################
; This php.ini is applied to the base container and inherited
; by every image built on top of it.
; Note that prod and work images overwrite specific settings
; for their use-case.
[PHP]
; Memory
memory_limit = 512M
; Timeouts
max_execution_time = 180
max_input_time = 180
; Uploads
post_max_size = 256M
upload_max_filesize = 256M
max_file_uploads = 20
; Vars
variables_order = EGPCS
max_input_vars = 8000
max_input_nesting_level = 64
; Error reporting
; Note: error_log is dynamic and handled during start to set appropriate setting
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
xmlrpc_errors = Off
report_memleaks = On
display_errors = Off
display_startup_errors = Off
track_errors = On
log_errors = On

View File

@@ -0,0 +1,42 @@
; ############################################################
; # Devilbox PHP defaults for all Docker images
; ############################################################
; This php.ini is applied to the base container and inherited
; by every image built on top of it.
; Note that prod and work images overwrite specific settings
; for their use-case.
[PHP]
; Memory
memory_limit = 512M
; Timeouts
max_execution_time = 180
max_input_time = 180
; Uploads
post_max_size = 256M
upload_max_filesize = 256M
max_file_uploads = 20
; Vars
variables_order = EGPCS
max_input_vars = 8000
max_input_nesting_level = 64
; Error reporting
; Note: error_log is dynamic and handled during start to set appropriate setting
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
xmlrpc_errors = Off
report_memleaks = On
display_errors = Off
display_startup_errors = Off
track_errors = On
log_errors = On

View File

@@ -0,0 +1,42 @@
; ############################################################
; # Devilbox PHP defaults for all Docker images
; ############################################################
; This php.ini is applied to the base container and inherited
; by every image built on top of it.
; Note that prod and work images overwrite specific settings
; for their use-case.
[PHP]
; Memory
memory_limit = 512M
; Timeouts
max_execution_time = 180
max_input_time = 180
; Uploads
post_max_size = 256M
upload_max_filesize = 256M
max_file_uploads = 20
; Vars
variables_order = EGPCS
max_input_vars = 8000
max_input_nesting_level = 64
; Error reporting
; Note: error_log is dynamic and handled during start to set appropriate setting
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
xmlrpc_errors = Off
report_memleaks = On
display_errors = Off
display_startup_errors = Off
track_errors = On
log_errors = On

View File

@@ -0,0 +1,42 @@
; ############################################################
; # Devilbox PHP defaults for all Docker images
; ############################################################
; This php.ini is applied to the base container and inherited
; by every image built on top of it.
; Note that prod and work images overwrite specific settings
; for their use-case.
[PHP]
; Memory
memory_limit = 512M
; Timeouts
max_execution_time = 180
max_input_time = 180
; Uploads
post_max_size = 256M
upload_max_filesize = 256M
max_file_uploads = 20
; Vars
variables_order = EGPCS
max_input_vars = 8000
max_input_nesting_level = 64
; Error reporting
; Note: error_log is dynamic and handled during start to set appropriate setting
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
xmlrpc_errors = Off
report_memleaks = On
display_errors = Off
display_startup_errors = Off
track_errors = On
log_errors = On

View File

@@ -0,0 +1,42 @@
; ############################################################
; # Devilbox PHP defaults for all Docker images
; ############################################################
; This php.ini is applied to the base container and inherited
; by every image built on top of it.
; Note that prod and work images overwrite specific settings
; for their use-case.
[PHP]
; Memory
memory_limit = 512M
; Timeouts
max_execution_time = 180
max_input_time = 180
; Uploads
post_max_size = 256M
upload_max_filesize = 256M
max_file_uploads = 20
; Vars
variables_order = EGPCS
max_input_vars = 8000
max_input_nesting_level = 64
; Error reporting
; Note: error_log is dynamic and handled during start to set appropriate setting
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
xmlrpc_errors = Off
report_memleaks = On
display_errors = Off
display_startup_errors = Off
track_errors = On
log_errors = On

View File

@@ -0,0 +1,42 @@
; ############################################################
; # Devilbox PHP defaults for all Docker images
; ############################################################
; This php.ini is applied to the base container and inherited
; by every image built on top of it.
; Note that prod and work images overwrite specific settings
; for their use-case.
[PHP]
; Memory
memory_limit = 512M
; Timeouts
max_execution_time = 180
max_input_time = 180
; Uploads
post_max_size = 256M
upload_max_filesize = 256M
max_file_uploads = 20
; Vars
variables_order = EGPCS
max_input_vars = 8000
max_input_nesting_level = 64
; Error reporting
; Note: error_log is dynamic and handled during start to set appropriate setting
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
xmlrpc_errors = Off
report_memleaks = On
display_errors = Off
display_startup_errors = Off
track_errors = On
log_errors = On

View File

@@ -0,0 +1,42 @@
; ############################################################
; # Devilbox PHP defaults for all Docker images
; ############################################################
; This php.ini is applied to the base container and inherited
; by every image built on top of it.
; Note that prod and work images overwrite specific settings
; for their use-case.
[PHP]
; Memory
memory_limit = 512M
; Timeouts
max_execution_time = 180
max_input_time = 180
; Uploads
post_max_size = 256M
upload_max_filesize = 256M
max_file_uploads = 20
; Vars
variables_order = EGPCS
max_input_vars = 8000
max_input_nesting_level = 64
; Error reporting
; Note: error_log is dynamic and handled during start to set appropriate setting
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
xmlrpc_errors = Off
report_memleaks = On
display_errors = Off
display_startup_errors = Off
track_errors = On
log_errors = On

View File

@@ -48,6 +48,7 @@ RUN set -x \
###
### Copy files
###
COPY ./data/php.d/php-5.3.ini /usr/local/etc/php/conf.d/yyy-devilbox-03-prod.ini
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
COPY ./data/postfix.sh /usr/local/sbin/postfix.sh

View File

@@ -48,6 +48,7 @@ RUN set -x \
###
### Copy files
###
COPY ./data/php.d/php-5.4.ini /usr/local/etc/php/conf.d/yyy-devilbox-03-prod.ini
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
COPY ./data/postfix.sh /usr/local/sbin/postfix.sh

View File

@@ -48,6 +48,7 @@ RUN set -x \
###
### Copy files
###
COPY ./data/php.d/php-5.5.ini /usr/local/etc/php/conf.d/yyy-devilbox-03-prod.ini
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
COPY ./data/postfix.sh /usr/local/sbin/postfix.sh

View File

@@ -48,6 +48,7 @@ RUN set -x \
###
### Copy files
###
COPY ./data/php.d/php-5.6.ini /usr/local/etc/php/conf.d/yyy-devilbox-03-prod.ini
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
COPY ./data/postfix.sh /usr/local/sbin/postfix.sh

View File

@@ -48,6 +48,7 @@ RUN set -x \
###
### Copy files
###
COPY ./data/php.d/php-7.0.ini /usr/local/etc/php/conf.d/yyy-devilbox-03-prod.ini
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
COPY ./data/postfix.sh /usr/local/sbin/postfix.sh

View File

@@ -48,6 +48,7 @@ RUN set -x \
###
### Copy files
###
COPY ./data/php.d/php-7.1.ini /usr/local/etc/php/conf.d/yyy-devilbox-03-prod.ini
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
COPY ./data/postfix.sh /usr/local/sbin/postfix.sh

View File

@@ -48,6 +48,7 @@ RUN set -x \
###
### Copy files
###
COPY ./data/php.d/php-7.2.ini /usr/local/etc/php/conf.d/yyy-devilbox-03-prod.ini
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
COPY ./data/postfix.sh /usr/local/sbin/postfix.sh

View File

@@ -48,6 +48,7 @@ RUN set -x \
###
### Copy files
###
COPY ./data/php.d/php-7.3.ini /usr/local/etc/php/conf.d/yyy-devilbox-03-prod.ini
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
COPY ./data/postfix.sh /usr/local/sbin/postfix.sh

View File

@@ -0,0 +1,9 @@
; ############################################################
; # Devilbox PHP defaults for all production Docker images
; ############################################################
; This php.ini is applied to the prod container and inherited
; by every image built on top of it.
[PHP]

View File

@@ -0,0 +1,9 @@
; ############################################################
; # Devilbox PHP defaults for all production Docker images
; ############################################################
; This php.ini is applied to the prod container and inherited
; by every image built on top of it.
[PHP]

View File

@@ -0,0 +1,9 @@
; ############################################################
; # Devilbox PHP defaults for all production Docker images
; ############################################################
; This php.ini is applied to the prod container and inherited
; by every image built on top of it.
[PHP]

View File

@@ -0,0 +1,9 @@
; ############################################################
; # Devilbox PHP defaults for all production Docker images
; ############################################################
; This php.ini is applied to the prod container and inherited
; by every image built on top of it.
[PHP]

View File

@@ -0,0 +1,9 @@
; ############################################################
; # Devilbox PHP defaults for all production Docker images
; ############################################################
; This php.ini is applied to the prod container and inherited
; by every image built on top of it.
[PHP]

View File

@@ -0,0 +1,9 @@
; ############################################################
; # Devilbox PHP defaults for all production Docker images
; ############################################################
; This php.ini is applied to the prod container and inherited
; by every image built on top of it.
[PHP]

View File

@@ -0,0 +1,9 @@
; ############################################################
; # Devilbox PHP defaults for all production Docker images
; ############################################################
; This php.ini is applied to the prod container and inherited
; by every image built on top of it.
[PHP]

View File

@@ -0,0 +1,9 @@
; ############################################################
; # Devilbox PHP defaults for all production Docker images
; ############################################################
; This php.ini is applied to the prod container and inherited
; by every image built on top of it.
[PHP]

View File

@@ -310,7 +310,7 @@ RUN set -x \
###
### Copy files
###
COPY ./data/php.d/error-reporting.ini /usr/local/etc/php/conf.d/devilbox-error-reporting.ini
COPY ./data/php.d/php-5.3.ini /usr/local/etc/php/conf.d/yyy-devilbox-04-work.ini
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
COPY ./data/bash-devilbox /etc/bash-devilbox

View File

@@ -325,7 +325,7 @@ RUN set -x \
###
### Copy files
###
COPY ./data/php.d/error-reporting.ini /usr/local/etc/php/conf.d/devilbox-error-reporting.ini
COPY ./data/php.d/php-5.4.ini /usr/local/etc/php/conf.d/yyy-devilbox-04-work.ini
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
COPY ./data/bash-devilbox /etc/bash-devilbox

View File

@@ -334,7 +334,7 @@ RUN set -x \
###
### Copy files
###
COPY ./data/php.d/error-reporting.ini /usr/local/etc/php/conf.d/devilbox-error-reporting.ini
COPY ./data/php.d/php-5.5.ini /usr/local/etc/php/conf.d/yyy-devilbox-04-work.ini
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
COPY ./data/bash-devilbox /etc/bash-devilbox

View File

@@ -334,7 +334,7 @@ RUN set -x \
###
### Copy files
###
COPY ./data/php.d/error-reporting.ini /usr/local/etc/php/conf.d/devilbox-error-reporting.ini
COPY ./data/php.d/php-5.6.ini /usr/local/etc/php/conf.d/yyy-devilbox-04-work.ini
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
COPY ./data/bash-devilbox /etc/bash-devilbox

View File

@@ -334,7 +334,7 @@ RUN set -x \
###
### Copy files
###
COPY ./data/php.d/error-reporting.ini /usr/local/etc/php/conf.d/devilbox-error-reporting.ini
COPY ./data/php.d/php-7.0.ini /usr/local/etc/php/conf.d/yyy-devilbox-04-work.ini
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
COPY ./data/bash-devilbox /etc/bash-devilbox

View File

@@ -334,7 +334,7 @@ RUN set -x \
###
### Copy files
###
COPY ./data/php.d/error-reporting.ini /usr/local/etc/php/conf.d/devilbox-error-reporting.ini
COPY ./data/php.d/php-7.1.ini /usr/local/etc/php/conf.d/yyy-devilbox-04-work.ini
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
COPY ./data/bash-devilbox /etc/bash-devilbox

View File

@@ -334,7 +334,7 @@ RUN set -x \
###
### Copy files
###
COPY ./data/php.d/error-reporting.ini /usr/local/etc/php/conf.d/devilbox-error-reporting.ini
COPY ./data/php.d/php-7.2.ini /usr/local/etc/php/conf.d/yyy-devilbox-04-work.ini
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
COPY ./data/bash-devilbox /etc/bash-devilbox

View File

@@ -322,7 +322,7 @@ RUN set -x \
###
### Copy files
###
COPY ./data/php.d/error-reporting.ini /usr/local/etc/php/conf.d/devilbox-error-reporting.ini
COPY ./data/php.d/php-7.3.ini /usr/local/etc/php/conf.d/yyy-devilbox-04-work.ini
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
COPY ./data/bash-devilbox /etc/bash-devilbox

View File

@@ -1,12 +0,0 @@
; PHP Development configuration for errors
; Show all errors
display_errors = On
display_startup_errors = On
; Log all errors
log_errors = On
; What errors to show/log
error_reporting = E_ALL | E_STRICT
xmlrpc_errors = On

View File

@@ -0,0 +1,17 @@
; ############################################################
; # Devilbox PHP defaults for all development Docker images
; ############################################################
; This php.ini is applied to the work container.
[PHP]
; Error reporting
; Note: error_log is dynamic and handled during start to set appropriate setting
error_reporting = E_ALL | E_NOTICE | E_STRICT | E_DEPRECATED
display_errors = On
display_startup_errors = On
track_errors = On
log_errors = On
html_errors = On

View File

@@ -0,0 +1,17 @@
; ############################################################
; # Devilbox PHP defaults for all development Docker images
; ############################################################
; This php.ini is applied to the work container.
[PHP]
; Error reporting
; Note: error_log is dynamic and handled during start to set appropriate setting
error_reporting = E_ALL | E_NOTICE | E_STRICT | E_DEPRECATED
display_errors = On
display_startup_errors = On
track_errors = On
log_errors = On
html_errors = On

View File

@@ -0,0 +1,17 @@
; ############################################################
; # Devilbox PHP defaults for all development Docker images
; ############################################################
; This php.ini is applied to the work container.
[PHP]
; Error reporting
; Note: error_log is dynamic and handled during start to set appropriate setting
error_reporting = E_ALL | E_NOTICE | E_STRICT | E_DEPRECATED
display_errors = On
display_startup_errors = On
track_errors = On
log_errors = On
html_errors = On

View File

@@ -0,0 +1,17 @@
; ############################################################
; # Devilbox PHP defaults for all development Docker images
; ############################################################
; This php.ini is applied to the work container.
[PHP]
; Error reporting
; Note: error_log is dynamic and handled during start to set appropriate setting
error_reporting = E_ALL | E_NOTICE | E_STRICT | E_DEPRECATED
display_errors = On
display_startup_errors = On
track_errors = On
log_errors = On
html_errors = On

View File

@@ -0,0 +1,17 @@
; ############################################################
; # Devilbox PHP defaults for all development Docker images
; ############################################################
; This php.ini is applied to the work container.
[PHP]
; Error reporting
; Note: error_log is dynamic and handled during start to set appropriate setting
error_reporting = E_ALL | E_NOTICE | E_STRICT | E_DEPRECATED
display_errors = On
display_startup_errors = On
track_errors = On
log_errors = On
html_errors = On

View File

@@ -0,0 +1,17 @@
; ############################################################
; # Devilbox PHP defaults for all development Docker images
; ############################################################
; This php.ini is applied to the work container.
[PHP]
; Error reporting
; Note: error_log is dynamic and handled during start to set appropriate setting
error_reporting = E_ALL | E_NOTICE | E_STRICT | E_DEPRECATED
display_errors = On
display_startup_errors = On
track_errors = On
log_errors = On
html_errors = On

View File

@@ -0,0 +1,17 @@
; ############################################################
; # Devilbox PHP defaults for all development Docker images
; ############################################################
; This php.ini is applied to the work container.
[PHP]
; Error reporting
; Note: error_log is dynamic and handled during start to set appropriate setting
error_reporting = E_ALL | E_NOTICE | E_STRICT | E_DEPRECATED
display_errors = On
display_startup_errors = On
track_errors = On
log_errors = On
html_errors = On

View File

@@ -0,0 +1,17 @@
; ############################################################
; # Devilbox PHP defaults for all development Docker images
; ############################################################
; This php.ini is applied to the work container.
[PHP]
; Error reporting
; Note: error_log is dynamic and handled during start to set appropriate setting
error_reporting = E_ALL | E_NOTICE | E_STRICT | E_DEPRECATED
display_errors = On
display_startup_errors = On
track_errors = On
log_errors = On
html_errors = On

View File

@@ -37,10 +37,11 @@ versions and packed with different types of integrated PHP modules. It also solv
1. [Environment variables](#environment-variables)
2. [Volumes](#volumes)
3. [Ports](#ports)
5. **[Integrated Development Environment](#integrated-development-environment)**
5. **[PHP Default Configuration](#php-default-configuration)**
6. **[Integrated Development Environment](#integrated-development-environment)**
1. [What toos can you expect](#what-tools-can-you-expect)
2. [What else is available](#what-else-is-available)
6. **[Examples](#examples)**
7. **[Examples](#examples)**
1. [Provide PHP-FPM port to host](#provide-php-fpm-port-to-host)
2. [Alter PHP-FPM and system timezone](#alter-php-fpm-and-system-timezone)
3. [Load custom PHP configuration](#load-custom-php-configuration)
@@ -50,10 +51,10 @@ versions and packed with different types of integrated PHP modules. It also solv
7. [Launch Postfix for mail-catching](#launch-postfix-for-mail-catching)
8. [Webserver and PHP-FPM](#webserver-and-php-fpm)
9. [Create MySQL Backups](#create-mysql-backups)
7. **[Automated builds](#automated-builds)**
8. **[Contributing](#contributing)**
9. **[Credits](#credits)**
10. **[License](#license)**
8. **[Automated builds](#automated-builds)**
9. **[Contributing](#contributing)**
10. **[Credits](#credits)**
11. **[License](#license)**
----
@@ -748,6 +749,20 @@ Have a look at the following table to see all offered exposed ports for each Doc
<h2><img id="php-default-configuration" width="20" src="https://github.com/devilbox/artwork/raw/master/submissions_logo/cytopia/01/png/logo_64_trans.png"> PHP Default Configuration</h2>
Each PHP version is using the same sane default php.ini values, making it pain-free to switch versions and not having to worry about different php.ini settings.
**Note:** Flavours alway inherit the settings from its parent flavour and will selectively overwrite specific settings.
| Flavour | Applied php.ini files|
|---------|------------------------------------------|
| base | [base.ini](Dockerfiles/base/data/php.d/) |
| mods | - |
| prod | [prod.ini](Dockerfiles/prod/data/php.d/) |
| work | [work.ini](Dockerfiles/work/data/php.d/) |
<h2><img id="integrated-development-environment" width="20" src="https://github.com/devilbox/artwork/raw/master/submissions_logo/cytopia/01/png/logo_64_trans.png"> Integrated Development Environment</h2>
If you plan to use the PHP-FPM image for development, hence being able to execute common commands inside the container itself, you should go with the **work** Image.

View File

@@ -0,0 +1,42 @@
; ############################################################
; # Devilbox PHP defaults for all Docker images
; ############################################################
; This php.ini is applied to the base container and inherited
; by every image built on top of it.
; Note that prod and work images overwrite specific settings
; for their use-case.
[PHP]
; Memory
memory_limit = 512M
; Timeouts
max_execution_time = 180
max_input_time = 180
; Uploads
post_max_size = 256M
upload_max_filesize = 256M
max_file_uploads = 20
; Vars
variables_order = EGPCS
max_input_vars = 8000
max_input_nesting_level = 64
; Error reporting
; Note: error_log is dynamic and handled during start to set appropriate setting
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
xmlrpc_errors = Off
report_memleaks = On
display_errors = Off
display_startup_errors = Off
track_errors = On
log_errors = On

View File

@@ -0,0 +1,9 @@
; ############################################################
; # Devilbox PHP defaults for all production Docker images
; ############################################################
; This php.ini is applied to the prod container and inherited
; by every image built on top of it.
[PHP]

View File

@@ -0,0 +1,17 @@
; ############################################################
; # Devilbox PHP defaults for all development Docker images
; ############################################################
; This php.ini is applied to the work container.
[PHP]
; Error reporting
; Note: error_log is dynamic and handled during start to set appropriate setting
error_reporting = E_ALL | E_NOTICE | E_STRICT | E_DEPRECATED
display_errors = On
display_startup_errors = On
track_errors = On
log_errors = On
html_errors = On

View File

@@ -62,6 +62,7 @@ RUN set -x \
###
### Copy files
###
COPY ./data/php.d/php-{{ php_version }}.ini /usr/local/etc/php/conf.d/yyy-devilbox-01-base.ini
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf

View File

@@ -50,6 +50,7 @@ RUN set -x \
###
### Copy files
###
COPY ./data/php.d/php-{{ php_version }}.ini /usr/local/etc/php/conf.d/yyy-devilbox-03-prod.ini
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
COPY ./data/postfix.sh /usr/local/sbin/postfix.sh

View File

@@ -191,7 +191,7 @@ RUN set -x \
###
### Copy files
###
COPY ./data/php.d/error-reporting.ini /usr/local/etc/php/conf.d/devilbox-error-reporting.ini
COPY ./data/php.d/php-{{ php_version }}.ini /usr/local/etc/php/conf.d/yyy-devilbox-04-work.ini
COPY ./data/docker-entrypoint.sh /docker-entrypoint.sh
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
COPY ./data/bash-devilbox /etc/bash-devilbox

View File

@@ -11,6 +11,15 @@ template_files:
- src: DOCKERFILES/Dockerfile-work.j2
dst: "../../Dockerfiles/work/Dockerfile-{{ php_version }}"
# PHP.ini files to apply sane defaults
ini_files:
- src: CONFIGURATION/php-base.ini
dst: "../../Dockerfiles/base/data/php.d/php-{{ php_version }}.ini"
- src: CONFIGURATION/php-prod.ini
dst: "../../Dockerfiles/prod/data/php.d/php-{{ php_version }}.ini"
- src: CONFIGURATION/php-work.ini
dst: "../../Dockerfiles/work/data/php.d/php-{{ php_version }}.ini"
# Adds self-validating checks to Dockerfile
# turn off for final build

View File

@@ -2,9 +2,18 @@
- name: render template
template:
src: "{{ item.src }}"
src: "{{ item.src }}"
dest: "{{ item.dst }}"
force: True
mode: 0644
mode: 0644
with_items:
- "{{ template_files }}"
- name: copy php.ini configuration
copy:
src: "{{ item.src }}"
dest: "{{ item.dst }}"
force: True
mode: 0644
with_items:
- "{{ ini_files }}"