Sign inSign up

ferri/nginx-fpm

By ferri

•Updated about 5 years ago

Nginx and PHP FPM service in one image, based on Alpine and S6 Overlay

Image
0

134

ferri/nginx-fpm repository overview

⁠Docker Nginx + PHP FPM

Docker Pulls

Nginx and PHP FPM service in one image, based on Alpine and S6 Overlay.

⁠Usage

docker run --rm -it -v ~/my/workspace:/var/www/public -p 80:8080 ferri/nginx-fpm:8.0

For laravel or another framework that serve from public subfolder, then you just mount to /var/www

docker run --rm -it -v ~/my/laravel-project:/var/www -p 80:8080 ferri/nginx-fpm:8.0

⁠Tags

TagAlpineImage Tag
7.4alpine:3.14ferri/nginx-fpm:7.4
8.0alpine:3.14ferri/nginx-fpm:8.0

⁠PHP Packages

These packages already included inside the image

  • fpm
  • bcmath
  • ctype
  • fileinfo
  • json
  • mbstring
  • openssl
  • pdo_mysql
  • tokenizer
  • xml
  • session
  • curl

⁠Production

For production, consider to extend this image and adding php-opcache and enable the setting opcache.* from 00-docker.ini

FROM ferri/nginx-fpm:8.0

RUN apk add --no-cache php8-opcache

# Copy the newer setting that enabled opcache
COPY files/php8 /

Tag summary

Content type

Image

Digest

Size

11.7 MB

Last updated

about 5 years ago

docker pull ferri/nginx-fpm:7.4