Docker Nginx PHP-FPM with Supervisor
10K+
Based Official PHP image: https://hub.docker.com/_/php with additional packages:
This repository will automatically update weekly.
Alpine:
8.0, 8, latest7.4, 77.3Debian Buster:
8.0-buster, 8-buster, latest-buster7.4-buster, 7-buster7.3-busterCheck from Tags all supported versions and architechtures.
Run latest version
docker run --name nginx-php-fpm -v /some/content:/var/www/html:ro -d olkitu/docker-nginx-php-fpm
Run specific version, example 7.4
docker run --name nginx-php-fpm -v /some/content:/var/www/html:ro -d olkitu/docker-nginx-php-fpm:7.4
To build image to production create Dockerfile to specify your own configuration.
# Use olkitu/docker-nginx-php-fpm image
FROM olkitu/docker-nginx-php-fpm:7.4
# Use production php.ini configuration and hide PHP-version
RUN cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini \
&& sed -i -e 's/expose_php = On/expose_php = Off/' /usr/local/etc/php/php.ini
# Do other changes like copy website files to image with COPY: https://docs.docker.com/engine/reference/builder/#copy
Content type
Image
Digest
Size
45.1 MB
Last updated
about 5 years ago
docker pull olkitu/docker-nginx-php-fpm