Sign inSign up

kensonman/nginx-php7fpm

By kensonman

Updated over 9 years ago

This is the simple Dockerfile to build a image that with Nginx and PHP7-FPM daemon support.

0

142

kensonman/nginx-php7fpm repository overview

Nginx-PHP7FPM

Homepage

https://github.com/kensonman/nginx-php7fpm

Introduction

This is the simple Dockerfile to build a image that with Nginx and PHP7-FPM daemon support.

The Nginx is base on the offical docker image.

The PHP was installed by Dotdeb.

Usage

  1. Download or Clone the Dockerfile into local;

  2. Execute the belows command in terminals:

     cd nginx-php7fpm
     docker build --build-arg UID=$UID --build-arg GID=`id -g` --build-arg USERNAME=`whoami` -t nginx-php7fpm .
    

Build Arguments

  • UID: The daemon execution user id; default is 1000
  • GID: The daemon execution user's group id; default is 1000
  • USERNAME: The daemon execution user name; default is thisuser

Extra PHP Module

The container installed the belows modules:

  • php7.0-fpm
  • php7.0-gd
  • php7.0-curl
  • php7.0-mysql
  • php7.0-imap
  • php-pear

If you need to install extra php module, simply create the docker-file as belows:

    FROM kensonman/nginx-php7fpm:latest
    RUN apt update \
    && apt install -y <php-extra-modules>

FTP Support

The image support the FTP to access the "/usr/share/nginx/html" folder. It is used to support the web-application need to modify the content itself (or let user to upload their own content).

The default FTP User is

     webmaster/zF9e27nBCAM55gZkhKWGehDf

Or you can build your own setting by using the Dockerfile.

Beware, you have to manage the user, group and related security setting/concern by yourself.

Tag Summary

No tags have been pushed to this repository yet.