mirror of
https://github.com/devilbox/docker-php-fpm.git
synced 2025-12-11 19:41:16 +00:00
Sane defaults for php.ini
This commit is contained in:
@@ -56,6 +56,7 @@ RUN set -x \
|
|||||||
###
|
###
|
||||||
### Copy files
|
### 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.sh /docker-entrypoint.sh
|
||||||
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
|
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
|
||||||
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf
|
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ RUN set -x \
|
|||||||
###
|
###
|
||||||
### Copy files
|
### 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.sh /docker-entrypoint.sh
|
||||||
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
|
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
|
||||||
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf
|
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ RUN set -x \
|
|||||||
###
|
###
|
||||||
### Copy files
|
### 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.sh /docker-entrypoint.sh
|
||||||
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
|
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
|
||||||
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf
|
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ RUN set -x \
|
|||||||
###
|
###
|
||||||
### Copy files
|
### 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.sh /docker-entrypoint.sh
|
||||||
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
|
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
|
||||||
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf
|
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ RUN set -x \
|
|||||||
###
|
###
|
||||||
### Copy files
|
### 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.sh /docker-entrypoint.sh
|
||||||
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
|
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
|
||||||
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf
|
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ RUN set -x \
|
|||||||
###
|
###
|
||||||
### Copy files
|
### 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.sh /docker-entrypoint.sh
|
||||||
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
|
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
|
||||||
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf
|
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ RUN set -x \
|
|||||||
###
|
###
|
||||||
### Copy files
|
### 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.sh /docker-entrypoint.sh
|
||||||
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
|
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
|
||||||
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf
|
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ RUN set -x \
|
|||||||
###
|
###
|
||||||
### Copy files
|
### 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.sh /docker-entrypoint.sh
|
||||||
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
|
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
|
||||||
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf
|
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf
|
||||||
|
|||||||
42
Dockerfiles/base/data/php.d/php-5.3.ini
Normal file
42
Dockerfiles/base/data/php.d/php-5.3.ini
Normal 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
|
||||||
42
Dockerfiles/base/data/php.d/php-5.4.ini
Normal file
42
Dockerfiles/base/data/php.d/php-5.4.ini
Normal 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
|
||||||
42
Dockerfiles/base/data/php.d/php-5.5.ini
Normal file
42
Dockerfiles/base/data/php.d/php-5.5.ini
Normal 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
|
||||||
42
Dockerfiles/base/data/php.d/php-5.6.ini
Normal file
42
Dockerfiles/base/data/php.d/php-5.6.ini
Normal 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
|
||||||
42
Dockerfiles/base/data/php.d/php-7.0.ini
Normal file
42
Dockerfiles/base/data/php.d/php-7.0.ini
Normal 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
|
||||||
42
Dockerfiles/base/data/php.d/php-7.1.ini
Normal file
42
Dockerfiles/base/data/php.d/php-7.1.ini
Normal 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
|
||||||
42
Dockerfiles/base/data/php.d/php-7.2.ini
Normal file
42
Dockerfiles/base/data/php.d/php-7.2.ini
Normal 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
|
||||||
42
Dockerfiles/base/data/php.d/php-7.3.ini
Normal file
42
Dockerfiles/base/data/php.d/php-7.3.ini
Normal 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
|
||||||
@@ -48,6 +48,7 @@ RUN set -x \
|
|||||||
###
|
###
|
||||||
### Copy files
|
### 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.sh /docker-entrypoint.sh
|
||||||
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
||||||
COPY ./data/postfix.sh /usr/local/sbin/postfix.sh
|
COPY ./data/postfix.sh /usr/local/sbin/postfix.sh
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ RUN set -x \
|
|||||||
###
|
###
|
||||||
### Copy files
|
### 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.sh /docker-entrypoint.sh
|
||||||
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
||||||
COPY ./data/postfix.sh /usr/local/sbin/postfix.sh
|
COPY ./data/postfix.sh /usr/local/sbin/postfix.sh
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ RUN set -x \
|
|||||||
###
|
###
|
||||||
### Copy files
|
### 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.sh /docker-entrypoint.sh
|
||||||
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
||||||
COPY ./data/postfix.sh /usr/local/sbin/postfix.sh
|
COPY ./data/postfix.sh /usr/local/sbin/postfix.sh
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ RUN set -x \
|
|||||||
###
|
###
|
||||||
### Copy files
|
### 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.sh /docker-entrypoint.sh
|
||||||
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
||||||
COPY ./data/postfix.sh /usr/local/sbin/postfix.sh
|
COPY ./data/postfix.sh /usr/local/sbin/postfix.sh
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ RUN set -x \
|
|||||||
###
|
###
|
||||||
### Copy files
|
### 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.sh /docker-entrypoint.sh
|
||||||
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
||||||
COPY ./data/postfix.sh /usr/local/sbin/postfix.sh
|
COPY ./data/postfix.sh /usr/local/sbin/postfix.sh
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ RUN set -x \
|
|||||||
###
|
###
|
||||||
### Copy files
|
### 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.sh /docker-entrypoint.sh
|
||||||
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
||||||
COPY ./data/postfix.sh /usr/local/sbin/postfix.sh
|
COPY ./data/postfix.sh /usr/local/sbin/postfix.sh
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ RUN set -x \
|
|||||||
###
|
###
|
||||||
### Copy files
|
### 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.sh /docker-entrypoint.sh
|
||||||
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
||||||
COPY ./data/postfix.sh /usr/local/sbin/postfix.sh
|
COPY ./data/postfix.sh /usr/local/sbin/postfix.sh
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ RUN set -x \
|
|||||||
###
|
###
|
||||||
### Copy files
|
### 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.sh /docker-entrypoint.sh
|
||||||
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
||||||
COPY ./data/postfix.sh /usr/local/sbin/postfix.sh
|
COPY ./data/postfix.sh /usr/local/sbin/postfix.sh
|
||||||
|
|||||||
9
Dockerfiles/prod/data/php.d/php-5.3.ini
Normal file
9
Dockerfiles/prod/data/php.d/php-5.3.ini
Normal 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]
|
||||||
9
Dockerfiles/prod/data/php.d/php-5.4.ini
Normal file
9
Dockerfiles/prod/data/php.d/php-5.4.ini
Normal 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]
|
||||||
9
Dockerfiles/prod/data/php.d/php-5.5.ini
Normal file
9
Dockerfiles/prod/data/php.d/php-5.5.ini
Normal 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]
|
||||||
9
Dockerfiles/prod/data/php.d/php-5.6.ini
Normal file
9
Dockerfiles/prod/data/php.d/php-5.6.ini
Normal 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]
|
||||||
9
Dockerfiles/prod/data/php.d/php-7.0.ini
Normal file
9
Dockerfiles/prod/data/php.d/php-7.0.ini
Normal 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]
|
||||||
9
Dockerfiles/prod/data/php.d/php-7.1.ini
Normal file
9
Dockerfiles/prod/data/php.d/php-7.1.ini
Normal 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]
|
||||||
9
Dockerfiles/prod/data/php.d/php-7.2.ini
Normal file
9
Dockerfiles/prod/data/php.d/php-7.2.ini
Normal 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]
|
||||||
9
Dockerfiles/prod/data/php.d/php-7.3.ini
Normal file
9
Dockerfiles/prod/data/php.d/php-7.3.ini
Normal 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]
|
||||||
@@ -310,7 +310,7 @@ RUN set -x \
|
|||||||
###
|
###
|
||||||
### Copy files
|
### 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.sh /docker-entrypoint.sh
|
||||||
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
||||||
COPY ./data/bash-devilbox /etc/bash-devilbox
|
COPY ./data/bash-devilbox /etc/bash-devilbox
|
||||||
|
|||||||
@@ -325,7 +325,7 @@ RUN set -x \
|
|||||||
###
|
###
|
||||||
### Copy files
|
### 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.sh /docker-entrypoint.sh
|
||||||
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
||||||
COPY ./data/bash-devilbox /etc/bash-devilbox
|
COPY ./data/bash-devilbox /etc/bash-devilbox
|
||||||
|
|||||||
@@ -334,7 +334,7 @@ RUN set -x \
|
|||||||
###
|
###
|
||||||
### Copy files
|
### 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.sh /docker-entrypoint.sh
|
||||||
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
||||||
COPY ./data/bash-devilbox /etc/bash-devilbox
|
COPY ./data/bash-devilbox /etc/bash-devilbox
|
||||||
|
|||||||
@@ -334,7 +334,7 @@ RUN set -x \
|
|||||||
###
|
###
|
||||||
### Copy files
|
### 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.sh /docker-entrypoint.sh
|
||||||
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
||||||
COPY ./data/bash-devilbox /etc/bash-devilbox
|
COPY ./data/bash-devilbox /etc/bash-devilbox
|
||||||
|
|||||||
@@ -334,7 +334,7 @@ RUN set -x \
|
|||||||
###
|
###
|
||||||
### Copy files
|
### 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.sh /docker-entrypoint.sh
|
||||||
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
||||||
COPY ./data/bash-devilbox /etc/bash-devilbox
|
COPY ./data/bash-devilbox /etc/bash-devilbox
|
||||||
|
|||||||
@@ -334,7 +334,7 @@ RUN set -x \
|
|||||||
###
|
###
|
||||||
### Copy files
|
### 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.sh /docker-entrypoint.sh
|
||||||
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
||||||
COPY ./data/bash-devilbox /etc/bash-devilbox
|
COPY ./data/bash-devilbox /etc/bash-devilbox
|
||||||
|
|||||||
@@ -334,7 +334,7 @@ RUN set -x \
|
|||||||
###
|
###
|
||||||
### Copy files
|
### 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.sh /docker-entrypoint.sh
|
||||||
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
||||||
COPY ./data/bash-devilbox /etc/bash-devilbox
|
COPY ./data/bash-devilbox /etc/bash-devilbox
|
||||||
|
|||||||
@@ -322,7 +322,7 @@ RUN set -x \
|
|||||||
###
|
###
|
||||||
### Copy files
|
### 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.sh /docker-entrypoint.sh
|
||||||
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
||||||
COPY ./data/bash-devilbox /etc/bash-devilbox
|
COPY ./data/bash-devilbox /etc/bash-devilbox
|
||||||
|
|||||||
@@ -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
|
|
||||||
17
Dockerfiles/work/data/php.d/php-5.3.ini
Normal file
17
Dockerfiles/work/data/php.d/php-5.3.ini
Normal 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
|
||||||
17
Dockerfiles/work/data/php.d/php-5.4.ini
Normal file
17
Dockerfiles/work/data/php.d/php-5.4.ini
Normal 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
|
||||||
17
Dockerfiles/work/data/php.d/php-5.5.ini
Normal file
17
Dockerfiles/work/data/php.d/php-5.5.ini
Normal 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
|
||||||
17
Dockerfiles/work/data/php.d/php-5.6.ini
Normal file
17
Dockerfiles/work/data/php.d/php-5.6.ini
Normal 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
|
||||||
17
Dockerfiles/work/data/php.d/php-7.0.ini
Normal file
17
Dockerfiles/work/data/php.d/php-7.0.ini
Normal 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
|
||||||
17
Dockerfiles/work/data/php.d/php-7.1.ini
Normal file
17
Dockerfiles/work/data/php.d/php-7.1.ini
Normal 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
|
||||||
17
Dockerfiles/work/data/php.d/php-7.2.ini
Normal file
17
Dockerfiles/work/data/php.d/php-7.2.ini
Normal 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
|
||||||
17
Dockerfiles/work/data/php.d/php-7.3.ini
Normal file
17
Dockerfiles/work/data/php.d/php-7.3.ini
Normal 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
|
||||||
27
README.md
27
README.md
@@ -37,10 +37,11 @@ versions and packed with different types of integrated PHP modules. It also solv
|
|||||||
1. [Environment variables](#environment-variables)
|
1. [Environment variables](#environment-variables)
|
||||||
2. [Volumes](#volumes)
|
2. [Volumes](#volumes)
|
||||||
3. [Ports](#ports)
|
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)
|
1. [What toos can you expect](#what-tools-can-you-expect)
|
||||||
2. [What else is available](#what-else-is-available)
|
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)
|
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)
|
2. [Alter PHP-FPM and system timezone](#alter-php-fpm-and-system-timezone)
|
||||||
3. [Load custom PHP configuration](#load-custom-php-configuration)
|
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)
|
7. [Launch Postfix for mail-catching](#launch-postfix-for-mail-catching)
|
||||||
8. [Webserver and PHP-FPM](#webserver-and-php-fpm)
|
8. [Webserver and PHP-FPM](#webserver-and-php-fpm)
|
||||||
9. [Create MySQL Backups](#create-mysql-backups)
|
9. [Create MySQL Backups](#create-mysql-backups)
|
||||||
7. **[Automated builds](#automated-builds)**
|
8. **[Automated builds](#automated-builds)**
|
||||||
8. **[Contributing](#contributing)**
|
9. **[Contributing](#contributing)**
|
||||||
9. **[Credits](#credits)**
|
10. **[Credits](#credits)**
|
||||||
10. **[License](#license)**
|
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>
|
<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.
|
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.
|
||||||
|
|||||||
42
build/ansible/CONFIGURATION/php-base.ini
Normal file
42
build/ansible/CONFIGURATION/php-base.ini
Normal 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
|
||||||
9
build/ansible/CONFIGURATION/php-prod.ini
Normal file
9
build/ansible/CONFIGURATION/php-prod.ini
Normal 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]
|
||||||
17
build/ansible/CONFIGURATION/php-work.ini
Normal file
17
build/ansible/CONFIGURATION/php-work.ini
Normal 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
|
||||||
@@ -62,6 +62,7 @@ RUN set -x \
|
|||||||
###
|
###
|
||||||
### Copy files
|
### 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.sh /docker-entrypoint.sh
|
||||||
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
|
COPY ./data/docker-entrypoint.d /docker-entrypoint.d
|
||||||
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf
|
COPY ./data/php-fpm.conf /usr/local/etc/php-fpm.conf
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ RUN set -x \
|
|||||||
###
|
###
|
||||||
### Copy files
|
### 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.sh /docker-entrypoint.sh
|
||||||
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
||||||
COPY ./data/postfix.sh /usr/local/sbin/postfix.sh
|
COPY ./data/postfix.sh /usr/local/sbin/postfix.sh
|
||||||
|
|||||||
@@ -191,7 +191,7 @@ RUN set -x \
|
|||||||
###
|
###
|
||||||
### Copy files
|
### 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.sh /docker-entrypoint.sh
|
||||||
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
COPY ./data/docker-entrypoint.d/*.sh /docker-entrypoint.d/
|
||||||
COPY ./data/bash-devilbox /etc/bash-devilbox
|
COPY ./data/bash-devilbox /etc/bash-devilbox
|
||||||
|
|||||||
@@ -11,6 +11,15 @@ template_files:
|
|||||||
- src: DOCKERFILES/Dockerfile-work.j2
|
- src: DOCKERFILES/Dockerfile-work.j2
|
||||||
dst: "../../Dockerfiles/work/Dockerfile-{{ php_version }}"
|
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
|
# Adds self-validating checks to Dockerfile
|
||||||
# turn off for final build
|
# turn off for final build
|
||||||
|
|||||||
@@ -2,9 +2,18 @@
|
|||||||
|
|
||||||
- name: render template
|
- name: render template
|
||||||
template:
|
template:
|
||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ item.dst }}"
|
dest: "{{ item.dst }}"
|
||||||
force: True
|
force: True
|
||||||
mode: 0644
|
mode: 0644
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ template_files }}"
|
- "{{ template_files }}"
|
||||||
|
|
||||||
|
- name: copy php.ini configuration
|
||||||
|
copy:
|
||||||
|
src: "{{ item.src }}"
|
||||||
|
dest: "{{ item.dst }}"
|
||||||
|
force: True
|
||||||
|
mode: 0644
|
||||||
|
with_items:
|
||||||
|
- "{{ ini_files }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user