Docker container to install and run PHP-FPM.
- 7.4:
7.4.3-fpm
、7.4.2-fpm
、7.4.1-fpm
、7.4.0-fpm
- 7.3:
7.3.14-fpm
、7.3.13-fpm
、7.3.12-fpm
、7.3.11-fpm
、7.3.10-fpm
、7.3.9-fpm
- 7.2:
7.2.27-fpm
、7.2.26-fpm
、7.2.25-fpm
、7.2.24-fpm
、7.2.23-fpm
- 7.1:
7.1.33-fpm
、7.1.32-fpm
- 7.0:
7.0.13-fpm
docker pull fifths/php
sudo docker container run --rm -v $(pwd):/var/www/html fifths/php php index.php
sudo docker container run --rm --name php-fpm -v $(pwd):/var/www/html -p 8080:8080 fifths/php php -S="0.0.0.0:8080" -t="/var/www/html"
using Docker Compose
version: '3'
services:
php-fpm:
container_name: php-fpm
image: fifths/php
ports:
- 8080:8080
volumes:
- ./:/var/www/html
command: php -S="0.0.0.0:8080" -t="/var/www/html"
version: '3'
services:
php-fpm:
image: fifths/php:7.3.9-fpm
ports:
- "9000:9000"
restart: always
volumes:
- "./:/var/www/html:rw"
command:
- /bin/sh
- -c
- |
cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini
php-fpm
environment:
TZ: "Asia/Shanghai"
- apcu
- bcmath
- bz2
- calendar
- Core
- ctype
- curl
- date
- dom
- exif
- fileinfo
- filter
- ftp
- gd
- gettext
- gmp
- hash
- iconv
- imagick
- imap
- inotify
- intl
- json
- ldap
- libxml
- mbstring
- memcached
- mongodb
- mysqli
- mysqlnd
- openssl
- pcntl
- pcre
- PDO
- pdo_mysql
- pdo_pgsql
- pdo_sqlite
- pgsql
- Phar
- posix
- readline
- redis
- Reflection
- session
- SimpleXML
- soap
- sockets
- sodium
- SPL
- sqlite3
- standard
- swoole
- tokenizer
- xdebug
- xml
- xmlreader
- xmlrpc
- xmlwriter
- xsl
- Zend OPcache
- zip
- zlib
- Xdebug
- Zend OPcache