Sign inSign up

waynerichen/php-nginx

By waynerichen

•Updated over 1 year ago

Integration with PHP-FPM, Nginx and more PHP modules.

Image
Web servers
1

1.0K

waynerichen/php-nginx repository overview

⁠About This Image

This image is integrated by Wayne Richen, and it integrates PHP-FPM and Nginx, allowing you to build php and nginx with just one image.

GitHub Repository: WayneRichen/docker-php-nginx⁠

⁠How to Use It?

⁠Use docker-compose

To use it in docker-compose, create a docker-compose.yml file with the following contents and your application will be mounted in the container at /var/www/html.

version: "3"  # optional since v1.27.0
services:
  php:
    container_name: php
    image: waynerichen/php-nginx:tag-name
    ports:
        - 80:80
    volumes:
        - ./html:/var/www/html
    restart: always
⁠Use Dockerfile

To use it in Dockerfile, create a Dockerfile with the following contents.

FROM waynerichen/php-nginx:tag-name
COPY . /var/www/html

⁠What's in the Image?

This image contains following programs and extensions.

Programs:

  • PHP-FPM (The version you choose)
  • Nginx
  • mariadb-client
  • composer 2.X
  • cron
  • git
  • vim
  • wget
  • zip

PHP modules

  • bcmath
  • Core
  • ctype
  • curl
  • date
  • dom
  • fileinfo
  • filter
  • ftp
  • gd
  • hash
  • iconv
  • intl
  • json
  • libxml
  • mbstring
  • mysqli
  • mysqlnd
  • openssl
  • pcre
  • PDO
  • pdo_mysql
  • pdo_sqlite
  • Phar
  • posix
  • readline
  • Reflection
  • session
  • SimpleXML
  • soap
  • sockets
  • sodium
  • SPL
  • sqlite3
  • standard
  • tokenizer
  • xml
  • xmlreader
  • xmlwriter
  • xsl
  • Zend OPcache
  • zip
  • zlib

⁠Building Multi-Arch Images for Arm and x86

docker buildx build -t waynerichen/php-nginx:tagname --platform linux/amd64,linux/arm64 --push .

Tag summary

Content type

Image

Digest

sha256:0c10506a2…

Size

246.1 MB

Last updated

over 1 year ago

docker pull waynerichen/php-nginx:8.3-bookworm