Giter Site home page Giter Site logo

imkitae / docker-nginx-php-fpm Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 3.0 20 KB

Docker image for PHP web service using Nginx + PHP-FPM

Home Page: https://hub.docker.com/r/ktkang/nginx-php-fpm/

Dockerfile 16.64% Shell 83.05% PHP 0.31%
docker nginx-php-fpm nginx php-fpm webserver

docker-nginx-php-fpm's Introduction

nginx-php-fpm

Build Status

Docker image for PHP web service using Nginx + PHP-FPM

Usage

docker run -it --rm \
    -p 8000:80 \
    -v $(pwd)/web:/var/www/html \
    ktkang/nginx-php-fpm:latest

// You can see php info page.
open http://localhost:8000

Environment variables

PHP

  • PHP_TIMEZONE (default = Asia/Seoul)
  • PHP_XDEBUG_ENABLE (default = 0)
  • PHP_XDEBUG_REMOTE_HOST (default = /sbin/ip route|awk '/default/ { print $3 }')
  • PHP_XDEBUG_REMOTE_AUTOSTART (default = 0)

Nginx

  • NGINX_DEBUG_LEVEL (default = info)
  • NGINX_SERVER_ROOT (default = /var/www/html)
  • NGINX_HEALTH_CHECK_PATH (default = /health)
  • NGINX_TRUSTED_CLOUDFLARE_PROXIES (default = 0)

PHP-FPM

  • PHPFPM_LOG_LEVEL (default = notice)
  • PHPFPM_PM_MAX_CHILDREN (default = 50)
  • PHPFPM_PM_START_SERVERS (default = 20)
  • PHPFPM_PM_MIN_SPARE_SERVERS (default = 15)
  • PHPFPM_PM_MAX_SPARE_SERVERS (default = 35)
  • PHPFPM_PM_MAX_REQUESTS (default = 512)
  • PHPFPM_MONITOR_ENABLE (default = 0)

docker-nginx-php-fpm's People

Contributors

imkitae avatar m0ai avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.