Sign inSign up

olkitu/docker-nginx-php-fpm

By olkitu

•Updated about 5 years ago

Docker Nginx PHP-FPM with Supervisor

Image
0

10K+

olkitu/docker-nginx-php-fpm repository overview

⁠Docker Nginx & PHP-FPM with Supervisor

GitHub Workflow Status (branch) Docker Pulls GitHub

Based Official PHP image: https://hub.docker.com/_/php⁠ with additional packages:

This repository will automatically update weekly.

⁠Supported PHP versions

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.

⁠Usage

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

⁠Production image

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

⁠License

MIT⁠

⁠Source

Source: https://github.com/olkitu/docker-nginx-php-fpm⁠

Tag summary

Content type

Image

Digest

Size

45.1 MB

Last updated

about 5 years ago

docker pull olkitu/docker-nginx-php-fpm