Based Official PHP image: https://hub.docker.com/_/php with additional packages:
- Nginx
- Supervisor
- renatomefi/php-fpm-healthcheck
This repository will automatically update weekly.
Alpine:
- 8:
8.0
,8
,latest
- 7.4:
7.4
,7
- 7.3:
7.3
Debian Buster:
- 8:
8.0-buster
,8-buster
,latest-buster
- 7.4:
7.4-buster
,7-buster
- 7.3:
7.3-buster
Check from Tags all supported versions and architechtures.
Run latest version
docker run --name nginx-php-fpm -v /some/content:/var/www/html:ro -d ghcr.io/olkitu/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 ghcr.io/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 ghcr.io/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