https://github.com/cornernote/docker-php
PHP Image for Docker
https://github.com/cornernote/docker-php
Last synced: 11 days ago
JSON representation
PHP Image for Docker
- Host: GitHub
- URL: https://github.com/cornernote/docker-php
- Owner: cornernote
- License: bsd-3-clause
- Created: 2018-01-11T01:39:08.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-03-10T22:44:18.000Z (about 3 years ago)
- Last Synced: 2025-01-24T05:23:51.578Z (about 1 year ago)
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/cornernote/php/
- Size: 130 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP Image for Docker
The image provides several services relating to serving a PHP web application.
[](https://hub.docker.com/r/cornernote/php/) [](https://hub.docker.com/r/cornernote/php/)
## Documentation
### Quick Start
`cat > docker-compose.yml` (paste from below, then `CTRL+D`)
```yaml
version: '3'
services:
php:
image: cornernote/php
ports:
- 80:80
```
Then start the container
```shell script
docker-compose up -d
```
For more examples see [Documentation](docs/README.md) > [Examples](docs/examples/README.md).
## 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](docs/README.md) > [PHP Info](docs/phpinfo.md).
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](https://github.com/cornernote/docker-php/blob/master/Dockerfile)
[](https://github.com/cornernote/docker-php) [](https://hub.docker.com/r/cornernote/php/) [](https://hub.docker.com/r/cornernote/php/)
### `7.3.22-fpm-stretch` [Dockerfile](https://github.com/cornernote/docker-php/blob/7.3.22-fpm-stretch/Dockerfile)
[](https://github.com/cornernote/docker-php/tree/7.3.22-fpm-stretch) [](https://hub.docker.com/r/cornernote/php/) [](https://hub.docker.com/r/cornernote/php/)
### `5.6-fpm` [Dockerfile](https://github.com/cornernote/docker-php/blob/5.6-fpm/Dockerfile)
[](https://github.com/cornernote/docker-php/tree/5.6-fpm) [](https://hub.docker.com/r/cornernote/php/) [](https://hub.docker.com/r/cornernote/php/)
## Resources
* [GitHub Project](https://github.com/cornernote/docker-php)
* [DockerHub Project](https://hub.docker.com/r/cornernote/php/)