The image provides several services relating to serving a PHP web application.
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.
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 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 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 is a time-based job scheduler.
Auto restarts when cron change is detected.
Comes with lockrun to prevent task overlap.
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.
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