Docker container to install and run PHP-FPM with pt_BR language installed and enabled.
PHP-FPM (FastCGI Process Manager) is an alternative FastCGI implementation for PHP.
sudo docker image pull vicenterusso/php-fpm:8.1.4
Run the PHP-FPM image, mounting a directory from your host.
sudo docker container run --rm -v $(pwd):/var/www/html vicenterusso/php-fpm:8.1.4 php index.php
sudo docker container run --rm --name phpfpm -v $(pwd):/var/www/html -p 3000:3000 vicenterusso/php-fpm:8.1.4 php -S="0.0.0.0:3000" -t="/var/www/html"
or using Docker Compose :
version: '3'
services:
phpfpm:
container_name: phpfpm
image: vicenterusso/php-fpm:8.1
ports:
- 3000:3000
volumes:
- /path/to/your/app:/var/www/html
command: php -S="0.0.0.0:3000" -t="/var/www/html"
sudo docker container logs phpfpm
sudo docker container run --rm vicenterusso/php-fpm:8.1 php -m
- bcmath
- bz2
- calendar
- Core
- cron
- ctype
- curl
- date
- dom
- exif
- fileinfo
- filter
- ftp
- gd
- gettext
- hash
- iconv
- imap
- intl
- json
- ldap
- libxml
- mbstring
- memcached
- mongodb
- mysqli
- mysqlnd
- openssl
- pcre
- PDO
- pdo_mysql
- pdo_pgsql
- pdo_sqlite
- pgsql
- Phar
- posix
- readline
- redis
- Reflection
- session
- SimpleXML
- soap
- sockets
- sodium
- SPL
- sqlite3
- standard
- tokenizer
- xdebug
- xml
- xmlreader
- xmlwriter
- xsl
- Zend OPcache
- zip
- zlib
- Xdebug
- Zend OPcache