PHP 8.4 with Nginx, Supervisor, Composer, and common extensions on Debian Bookworm
1.1K
This Docker image provides a full-featured PHP 8.4 environment on top of Debian Bookworm. It includes PHP-FPM, Nginx, and Supervisor for process management, along with a wide selection of PHP extensions and development utilities.
debian:bookwormbcmath, curl, dom, fileinfo, ftp, gd, intl, mbstring, mysql, soap, sockets, tokenizer, xml, xsl, zipapcu, opcache, and PECL-based mongodbHOST_UID and HOST_GID build args/var/log and /tmpYou can build the image with custom UID and GID to match your host user:
docker build \
--build-arg HOST_UID=$(id -u) \
--build-arg HOST_GID=$(id -g) \
-t php8.4-dev .
You can start a container and map your current directory to /var/www/html:
docker run -it --rm \
-p 8080:80 \
-v $(pwd):/var/www/html \
php8.4-dev
By default, this runs:
Both are managed by supervisord.
Supervisor is configured via /etc/supervisor/supervisord.conf, and manages:
[program:php-fpm]
command=/usr/sbin/php-fpm8.4 -F
[program:nginx]
command=/usr/sbin/nginx -g "daemon off;"
Logs are written to:
/var/log/php-fpm.out.log and /var/log/php-fpm.err.log/var/log/nginx.err.logSupervisor itself logs to /tmp/supervisord.log.
www user and group with customizable UID/GID (default: 1000)/usr/local/bin/composer/var/www/htmletc/supervisor/supervisord.conf: Supervisor launch configContent type
Image
Digest
sha256:d9a75a944…
Size
341.2 MB
Last updated
over 1 year ago
docker pull belkajo/php84