Sign inSign up

mrcs2000/nginx-php-fpm-ldap

By mrcs2000

•Updated over 2 years ago

Nginx + PHP-FPM 8.3.x / 8.2.x + Composer built on Debian 12 (Bookworm) image

Image
0

10K+

mrcs2000/nginx-php-fpm-ldap repository overview

nginx 1.26.1 php 8.3.8 License MIT

⁠Introduction

This is a Dockerfile to build a debian based container image running nginx and php-fpm 8.3.x / 8.2.x & Composer.

⁠Versioning
Docker TagGitHub ReleaseNginx VersionPHP VersionDebian VersionComposer
latestmaster Branch1.26.18.3.8bookworm2.7.7
php82php82 Branch1.25.18.2.8bookwork2.5.8
php81php81 Branch1.23.18.1.13bullseye2.4.4
php74php74 Branch1.21.67.4.28buster2.0.13

⁠Building from source

To build from source you need to clone the git repo and run docker build:

$ git clone https://github.com/LordMrcS/nginx-php-fpm.git
$ cd nginx-php-fpm

followed by

$ docker build -t nginx-php-fpm:php83 . # PHP 8.3.x

⁠Pulling from Docker Hub

$ docker pull mrcs2000/nginx-php-fpm-ldap

⁠Pulling from Github Container Registry

$ docker pull ghcr.io/lordmrcs/nginx-php-fpm:master

⁠Running

To run via CLI the container from Github:

$ sudo docker run -d ghcr.io/lordmrcs/nginx-php-fpm:master

Default web root:

/usr/share/nginx/html

⁠Running via docker-compose stack file

This example mounts the default nginx HTML path to ./www, overrides nginx and PHP default confs and exposes port 80.

version: '3'
services:
  web:
    image: ghcr.io/lordmrcs/nginx-php-fpm:master
    volumes:
      - ./www/:/usr/share/nginx/html/
      - ./default.conf:/etc/nginx/conf.d/default.conf
      - ./php.ini:/etc/php/8.3/fpm/php.ini
    ports:
      - 80:80

Forked from wyveo/nginx-php-fpm⁠

Tag summary

Content type

Image

Digest

sha256:2a64d49b5…

Size

250.6 MB

Last updated

over 2 years ago

docker pull mrcs2000/nginx-php-fpm-ldap