thelittlefireman 49ddd9fe3e Prevent config files from being filled to infinity
When you start/stop Successively your container, the file /root/.ssh/conf and /usr/local/etc/php-fpm.conf grow to infinity : loop repetition of line "; Include one or more files. If glob(3) exists, it is used to include a bunch of
; files from a glob(3) pattern. This directive can be used everywhere in the
; file.
; Relative path can also be used. They will be prefixed by:
;  - the global prefix if it's been set (-p argument)
;  - /usr/local otherwise
include=etc/php-fpm.d/*.conf
php_flag[display_errors] = off
php_flag[display_errors] = off
php_flag[display_errors] = off
php_flag[display_errors] = off
php_flag[display_errors] = off"
2017-04-07 09:43:19 +02:00
2017-03-23 08:29:17 +01:00
2016-09-23 10:46:43 +01:00
2017-02-11 13:11:19 +01:00
2017-03-17 12:32:22 +00:00
2016-06-15 15:36:42 +01:00
2017-02-21 14:08:33 +00:00
2017-02-13 23:37:39 +00:00

docker hub docker hub Travis

Overview

This is a Dockerfile/image to build a container for nginx and php-fpm, with the ability to pull website code from git when the container is created, as well as allowing the container to push and pull changes to the code to and from git. The container also has the ability to update templated files with variables passed to docker in order to update your code and settings. There is support for lets encrypt SSL configurations, custom nginx configs, core nginx/PHP variable overrides for running preferences, X-Forwarded-For headers and UID mapping for local volume support.

If you have improvements or suggestions please open an issue or pull request on the GitHub project page.

Versioning

Docker Tag GitHub Release Nginx Version PHP Version Alpine Version
latest Master Branch 1.11.10 7.1.2 3.4

For other tags please see: versioning

Quick Start

To pull from docker hub:

docker pull richarvey/nginx-php-fpm:latest

Running

To simply run the container:

sudo docker run -d richarvey/nginx-php-fpm

To dynamically pull code from git when starting:

docker run -d -e 'GIT_EMAIL=email_address' -e 'GIT_NAME=full_name' -e 'GIT_USERNAME=git_username' -e 'GIT_REPO=github.com/project' -e 'GIT_PERSONAL_TOKEN=<long_token_string_here>' richarvey/nginx-php-fpm:latest

You can then browse to http://<DOCKER_HOST> to view the default install files. To find your DOCKER_HOST use the docker inspect to get the IP address (normally 172.17.0.2)

For more detailed examples and explanations please refer to the documentation.

Documentation

Guides

Description
No description provided
Readme 471 KiB