PHP as FastCGI Process Manager (FPM) server
196
PHP as FastCGI Process Manager (FPM) server. Server to process PHP scripts on demand through FastCGI.
It is possible to configure the service through the php.ini and *.conf files.
It is possible to use template php.ini.template and *.conf.template files to generate the final files with the appropriate substitutions of the values of the environment variables.
Configuring your services or websites:
PHP_VERSION = 5 or 7
/etc/php7.templates
/etc/php7.templates.d
/etc/php7.templates.fpm
*.template in these directories to make the files in the respective directory without .template part. The final files will have the replacement of environment variables with their values./etc/php7.conf
/etc/php7/ directory is a symbolic link that points to this directory./home
/var/log
NOTE: If variable PHP_VERSION is 5 consider above names php7 as php5.
The default port for PHP FastCGI Process Manager (PHP-FPM) server is 9000.
version: "3.3"
services:
php5:
image: sergiocabral/phpfpm
ports:
- 9000:9000
volumes:
- /docker-volumes/php7/templates:/etc/php7.templates
- /docker-volumes/php7/templates.d:/etc/php7.templates.d
- /docker-volumes/php7/templates.fpm:/etc/php7.templates.fpm
- /docker-volumes/php7/conf:/etc/php7.conf
- /docker-volumes/php7/log:/var/log
- /docker-volumes/nginx/sites:/home/
environment:
- PHP_VERSION=7
NOTE AGAIN: If variable PHP_VERSION is 5 consider above names php7 as php5.
Content type
Image
Digest
sha256:e37f64d7d…
Size
5.7 MB
Last updated
almost 4 years ago
docker pull sergiocabral/phpfpm