cornernote / docker-php

PHP Image for Docker

Home Page:https://hub.docker.com/r/cornernote/php/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP Image for Docker

The image provides several services relating to serving a PHP web application.

Pulls Build

Documentation

Quick Start

cat > docker-compose.yml (paste from below, then CTRL+D)

version: '3'
services:
  php:
    image: cornernote/php
    ports:
      - 80:80

Then start the container

docker-compose up -d

For more examples see Documentation > Examples.

Services Provided

PHP

PHP is a popular general-purpose scripting language that is especially suited to web development.

FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features (mostly) useful for heavy-loaded sites.

The PHP-FPM service is available on port 9000.

PHP modules:

  • apcu
  • bcmath
  • calendar
  • Core
  • ctype
  • curl
  • date
  • dom
  • exif
  • fileinfo
  • filter
  • ftp
  • gd
  • gearman
  • hash
  • iconv
  • imagick
  • imap
  • intl
  • json
  • libxml
  • mailparse
  • mbstring
  • memcached
  • mysqli
  • mysqlnd
  • openssl
  • pcntl
  • pcre
  • PDO
  • pdo_mysql
  • pdo_pgsql
  • pdo_sqlite
  • Phar
  • posix
  • readline
  • Reflection
  • session
  • SimpleXML
  • soap
  • sodium
  • SPL
  • sqlite3
  • ssh2
  • standard
  • tidy
  • tokenizer
  • v8js
  • xdebug
  • xml
  • xmlreader
  • xmlwriter
  • Zend OPcache
  • zip
  • zlib

For complete phpinfo() output see Documentation > PHP Info.

PHP-related Linux packages:

  • composer
  • codeception
  • psysh
  • robo
  • wkhtmltopdf
  • lockrun

Supervisor

Supervisor is a client/server system that allows its users to monitor and control a number of processes on UNIX-like operating systems.

Docker runs a single service. Supervisor allows multiple processes to run within a single container.

Nginx

Nginx is a high-performance HTTP server and reverse proxy.

Support for environment variables in configuration.

Auto restarts when nginx config or ssl change is detected.

SSL certificate support for letsencrypt with certbot.

The nginx service is available on port 80 and 443.

Cron

Cron is a time-based job scheduler.

Auto restarts when cron change is detected.

Comes with lockrun to prevent task overlap.

NRPE

NRPE allows you to locally execute Nagios plugins when requested by a Nagios or Shinken server to monitor machine metrics (disk usage, CPU load, etc.).

The NRPE service is available on port 5666.

Other Packages

In addition to the services above, the image comes with following system administration tools:

  • mysql client / percona toolkit
  • rsync / s3cmd
  • nodejs / npm
  • image magick
  • ping / curl / wget
  • lockrun

Supported tags and Dockerfile links

latest Dockerfile

Version Layers Size

7.3.22-fpm-stretch Dockerfile

Version Layers Size

5.6-fpm Dockerfile

Version Layers Size

Resources

About

PHP Image for Docker

https://hub.docker.com/r/cornernote/php/

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Dockerfile 59.0%Language:Shell 27.3%Language:Hack 13.6%