Sign inSign up

tomy0000000/php-fpm

By tomy0000000

Updated about 6 years ago

FastCGI implementation for PHP, composer installed, production ready

Image
0

97

tomy0000000/php-fpm repository overview

PHP-FPM 7.4-nginx

FastCGI implementation for PHP, composer installed, production ready and compatible with tomy0000000/nginx

Information

Configurations
Base Imagephp-fpm:7.4
Container Nameawesome-php-fpm
Volumes
Network
Expose Port9000

Install

Build (Optional)
  • Docker Compose
docker-compose \
    --file docker-compose-build.yml \
    up --detach --build
  • Dockerfile
docker build --tag tomy0000000/php-fpm:7.4-nginx .
Init File Structure (Skip if testing)
Run Container
  • Docker Compose
docker-compose up --detach
  • Dockerfile
docker run \
    --detach \
    --volume="$PWD/nginx/html:/usr/share/nginx/html" \
    --name awesome-php-fpm \
    --sysctl net.ipv4.ip_unprivileged_port_start=0 \
    tomy0000000/php-fpm:7.4-nginx

Usage

Control PHP-FPM
  • Reload PHP-FPM
docker kill --signal USR2 awesome-php-fpm

Custom Setting

Applied
  • Install Composer
  • Add GD Extension support
Runtime
  • Bind content directory to host machine (to compatible with nginx)
Host Machine
  • (None)

References

Tag summary

Content type

Image

Digest

Size

151.9 MB

Last updated

about 6 years ago

docker pull tomy0000000/php-fpm:7.4-nginx-1.1