Skip to content

protosprojetos/php-fpm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP-FPM Docker Image

Docker container to install and run PHP-FPM.

Build Status Automated Build

Supported branches and respective Dockerfile links

Note: The master branch will always have the latest version of PHP

What is PHP-FPM ?

PHP-FPM (FastCGI Process Manager) is an alternative FastCGI implementation for PHP.

Getting image

sudo docker pull protosprojetos/php-fpm

Running your PHP script

Running image

Run the PHP-FPM image, mounting a directory from your host.

sudo docker run -it --name phpfpm -v /path/to/your/app:/var/www/html protosprojetos/php-fpm php index.php

or using Docker Compose:

version: '3'
services:
  phpfpm:
    container_name: phpfpm
    image: protosprojetos/php-fpm
    entrypoint: php index.php
    volumes:
      - /path/to/your/app:/var/www/html

Running as server

sudo docker run --rm --name phpfpm -v /path/to/your/app:/var/www/html -p 8181:8181 protosprojetos/php-fpm php-fpm -S="0.0.0.0:8181" -t="/var/www/html"

Logging

sudo docker logs phpfpm

Listing installed extensions

sudo docker run --rm -it protosprojetos/php-fpm php -m

Credits

https://github.com/nanoninja/php-fpm

About

Docker container to install and run PHP-FPM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published