Sign inSign up

bfren/nginx-php

By bfren

Updated 13 days ago

Nginx image based on Alpine Linux, with PHP installed in FPM mode.

Image
0

100K+

bfren/nginx-php repository overview

Docker Nginx PHP

GitHub release (latest by date) Docker Pulls Docker Image Size GitHub Workflow Status

Docker Repository - bfren ecosystem

Nginx plus PHP (7.4, 8.0, 8.1, 8.2, 8.3, 8.4 and 8.5) - no SSL support etc, designed to be used behind a proxy server. Minimal PHP packages are installed:

  • php
  • php-common
  • php-fpm
  • php-session

Nginx is setup by default to run PHP in FPM mode. To override values in www.conf map a xx.json file to /etc/bf/php-fpm.d - see www-conf-sample.json. Values in the php.ini file can be overridden in the same way - see Docker PHP for more information and a sample file.

Contents

Ports

  • 80

Volumes

VolumePurpose
/wwwFrom base image.

Environment Variables

See Docker PHP for configuration instructions.

Nginx Configuration Helpers

The image contains a handful of useful Nginx configuration 'helper' files, which you can find in /overlay/etc/nginx/helpers. They all begin with the prefix 'php':

HelperDescription
-try-all.confEnables SEO-friendly URLs (e.g. without index.php).
-try-php.confSends the request to upstream PHP FastCGI Process Manager.

Licence

Copyright (c) 2020-2026 bfren (unless otherwise stated)

Tag summary

Content type

Image

Digest

sha256:002315c19

Size

38.1 MB

Last updated

13 days ago

docker pull bfren/nginx-php:php8.3.33-8.2.3