Nginx and PHP FPM service in one image, based on Alpine and S6 Overlay
134
Nginx and PHP FPM service in one image, based on Alpine and S6 Overlay.
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
| Tag | Alpine | Image Tag |
|---|---|---|
| 7.4 | alpine:3.14 | ferri/nginx-fpm:7.4 |
| 8.0 | alpine:3.14 | ferri/nginx-fpm:8.0 |
These packages already included inside the image
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 /
Content type
Image
Digest
Size
11.7 MB
Last updated
about 5 years ago
docker pull ferri/nginx-fpm:7.4