Giter VIP home page Giter VIP logo

docker-php's Introduction

PHP with fpm

PHP docker image based on official one with pre-installed extensions and tools.

Download

Grab it by running

docker pull codibly/php:PHP-VERSION

where PHP-VERSION (optional, defaults to latest) is a desired version of PHP:

  • 7 - the very latest stable version (same as latest)
  • 7.x - the latest version for 7.x branch
  • 7.x.y - the specific version

available versions:

  • 7.1.6
  • 7.1.7
  • 7.2
  • 7.3

Run

Type

docker run --name some-php -d codibly/php:PHP-VERSION

That will start php-fpm daemon listening on 9000 port with PID 1.

Logs are written to STDOUT, examine them running

docker logs some-php -f

Configuration

Main PHP configuration file can be found at /usr/local/etc/php/php.ini and extra ones in /usr/local/etc/php/conf.d directory (every file with .ini will be parsed and included). Provided php.ini file is suitable for development.

Main php-fpm configuration is here /usr/local/etc/php-fpm.conf while pools configuration should be place in /usr/local/etc/php-fpm.d with .conf extension.

To tweak anyting you can provide your own configuration file in your derived images or edit existing one and tell php-fpm daemon to reload itself by sending USR2 signal

kill -USR2 1

Pre-installed extensions

  • bcmath
  • calendar
  • ctype
  • dba
  • dom
  • exif
  • fileinfo
  • ftp
  • gettext
  • gd
  • hash
  • iconv
  • intl
  • mbstring
  • mongodb
  • opcache
  • pcntl
  • pdo
  • pdo_pgsql
  • pdo_mysql
  • posix
  • session
  • simplexml
  • soap
  • sockets
  • xsl
  • zip

Installed PHP software/tools

Debugers

  • xdebug (configuration file: /usr/local/etc/php/conf.d/xdebug.ini)
  • phpdbg

docker-php's People

Contributors

kuba-biernacki-c avatar mariusz-kraj-c avatar mariusz-kraj avatar

Stargazers

Andrzej Piszczek avatar

Watchers

James Cloos avatar Andrzej Piszczek avatar Łukasz Krawczyk avatar  avatar  avatar Radek Smoczyński 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.