No description
This repository has been archived on 2026-11-17. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Dockerfile 61.5%
  • Shell 38.5%
Find a file
Jonas Leder e5475a42cb Merge branch 'master' into 'master'
add PHP_MAX_EXECUTION_TIME option

See merge request jonasled/nginx-php-minimal!6
2024-09-06 20:57:41 +02:00
vhost add php-fpm 2021-11-25 13:06:22 +01:00
.drone.star squash layers 2024-09-06 20:33:02 +02:00
.gitlab-ci.yml drop support for alpine versions older than 3.15 2024-09-06 20:46:46 +02:00
Dockerfile added PHP_MAX_EXECUTION_TIME option 2024-09-06 20:06:25 +02:00
nginx.conf enable gzip compression 2023-10-31 20:41:05 +01:00
Readme.md Merge branch nginx-php-minimal:master into master 2024-09-06 20:55:49 +02:00
start.sh fixed sed of previously added max_execution_time var 2024-09-06 20:10:54 +02:00

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.
PHP_MAX_EXECUTION_TIME 30 The maximum execution time of 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.4 edge 84-edge Still in beta
8.3 3.20 83-3.20
8.3 3.19 3-3.19
8.3 latest 83-latest
8.3 edge 83-edge
8.2 3.20 82-3.20
8.2 3.19 82-3.19
8.2 3.18 82-3.18
8.2 latest 82-latest
8.2 edge 82-edge
8.1 3.16 81-3.16
8.1 3.17 81-3.17
8.1 3.18 81-3.18
8.1 3.19 81-3.19
8.0 3.16 8-3.16
8.0 3.15 8-3.15
7.4 3.15 7-3.15