Nginx + PHP-FPM 8.3.x / 8.2.x + Composer built on Debian 12 (Bookworm) image
10K+
This is a Dockerfile to build a debian based container image running nginx and php-fpm 8.3.x / 8.2.x & Composer.
| Docker Tag | GitHub Release | Nginx Version | PHP Version | Debian Version | Composer |
|---|---|---|---|---|---|
| latest | master Branch | 1.26.1 | 8.3.8 | bookworm | 2.7.7 |
| php82 | php82 Branch | 1.25.1 | 8.2.8 | bookwork | 2.5.8 |
| php81 | php81 Branch | 1.23.1 | 8.1.13 | bullseye | 2.4.4 |
| php74 | php74 Branch | 1.21.6 | 7.4.28 | buster | 2.0.13 |
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
$ docker pull mrcs2000/nginx-php-fpm-ldap
$ docker pull ghcr.io/lordmrcs/nginx-php-fpm:master
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
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
Content type
Image
Digest
sha256:2a64d49b5…
Size
250.6 MB
Last updated
over 2 years ago
docker pull mrcs2000/nginx-php-fpm-ldap