Skip to content

bfren/docker-nginx-php

Repository files navigation

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 and 8.3) - 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 www-conf.json file to root - 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

Volume Purpose
/www From 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':

Helper Description
-try-all.conf Enables SEO-friendly URLs (e.g. without index.php).
-try-php.conf Sends the request to upstream PHP FastCGI Process Manager.

Licence

MIT

Copyright

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

Sponsor this project

  •  

Packages

 
 
 

Contributors 2

  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy