Docker Image for Nginx and PHP 8.2 with Composer & Extensions
323
A custom Docker image combining PHP 8.2-FPM and Nginx, optimized for modern PHP development environments with essential extensions and Composer support built-in.
š¦ Base Image: php:8.2-fpm
š Source Code: GitHub Repositoryā
php:8.2-fpmcomposer:2)pdo, pdo_mysql, mysqligd (with freetype and jpeg)imagick (via PECL)index.php and info.phpdocker run -d -p 8080:8080 luri/php-nginx
Then open: http://localhost:8080ā
Running to shell:
docker run -it --rm --name nginx luri/php-nginx bash
Running with docker compose:
docker compose up
files/nginx/default.conf ā Preconfigured Nginx virtual hostfiles/index.php ā Welcome pagefiles/info.php ā PHP info page8080/app8080amd64, arm64docker-compose.ymlservices:
web:
build:
context: .
image: luri/php-apache
environment:
- PORT
ports:
- "${PORT}:80"
# volumes:
# - ./src:/app
env_file:
- .env
Content type
Image
Digest
sha256:0a8035c84ā¦
Size
299.1 MB
Last updated
over 1 year ago
docker pull luri/php-nginx