Integration with PHP-FPM, Nginx and more PHP modules.
1.0K
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
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
To use it in Dockerfile, create a Dockerfile with the following contents.
FROM waynerichen/php-nginx:tag-name
COPY . /var/www/html
This image contains following programs and extensions.
Programs:
PHP modules
docker buildx build -t waynerichen/php-nginx:tagname --platform linux/amd64,linux/arm64 --push .
Content type
Image
Digest
sha256:0c10506a2…
Size
246.1 MB
Last updated
over 1 year ago
docker pull waynerichen/php-nginx:8.3-bookworm