Skip to content
Snippets Groups Projects
Select Git revision
  • ee442476efa91b1f5202d9ea8351efb0ac5d02f6
  • master default protected
2 results

nginx-php-minimal

Jonas Leder's avatar
Jonas Leder authored
ee442476
History

Alpine Linux with NGINX and PHP Docker Container

This is a Alpine Linux based Docker Container, which comes with nginx and PHP preinstalled. PHP is running as FPM-daemon and builtin in the default vhost. For monitoring the services a seperate vhost is configured on port 8080, which returns via PHP "OK". There is already a healthcheck configured for this page. The default vhost points to /var/www/html. Sompe PHP settings can be configured from environment variables:

Variable Default Value Notes
PHP_MEMORY_LIMIT 512M
PHP_MAX_UPLOAD 50M
PHP_MAX_FILE_UPLOAD 200
PHP_MAX_POST 100M
PHP_DISPLAY_ERRORS Off
PHP_DISPLAY_STARTUP_ERRORS Off
PHP_ERROR_REPORTING "E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR"
PHP_CGI_FIX_PATHINFO 0
PHP_LOG_LEVEL notice This is the log level for the PHP FPM daemon.
PHP_EXPOSE_INFO Off Set this to On if you want the x-powered-by header in your response.
PHP_FILE_UPLOADS On Allow user to upload files to PHP scripts.

The Image is available in multiple PHP and alpine versions. The following tag name will be used for every image: <branch>-<php version>-<alpine version>. For the master branch, the branch tag is not included. At the moment the following versions are available:

PHP Version Alpine Version Tag Name Notes
8.3 latest 83-latest
8.3 edge 83-edge
8.3 3.19 83-3.19
8.2 latest 82-latest
8.2 edge 82-edge
8.2 3.19 82-3.19
8.2 3.18 82-3.18
8.1 latest 81-latest
8.1 edge 81-edge
8.1 3.19 81-3.19
8.1 3.18 81-3.18
8.1 3.17 81-3.17
8.1 3.16 81-3.16
8.0 3.16 8-3.16
8.0 3.15 8-3.15
8.0 3.14 8-3.14
8.0 3.13 8-3.13
7.4 3.15 7-3.15
7.4 3.14 7-3.14
7.4 3.13 7-3.13
7.3 3.12 7-3.12
7.3 3.11 7-3.11
7.3 3.10 7-3.10