lahiru98s/php-nginx

By lahiru98s

Updated 3 months ago

php-nginx-docker-template

Image
Security
Web servers
Monitoring & observability
0

2.7K

lahiru98s/php-nginx repository overview

PHP + Nginx (Alpine)

Hardened PHP-FPM + Nginx on Alpine. Fast startup, low memory, ready for prod.

Highlights

  • Non-root runtime, secure defaults, gzip/cache and basic security headers
  • Opcache/APCu tuned for speed; PHP-FPM over unix socket
  • Supervisor + tini for graceful shutdowns and managed services
  • Health endpoints /fpm-ping and /fpm-status (localhost)
  • Prebaked variants: PHP 7.4, 8.1, 8.2, 8.3, 8.4 (edge)

Quick start

docker run --rm -p 8080:8080 lahiru98s/php-nginx-docker-template:8.3

Then open http://localhost:8080.

Common env overrides

EXPOSE_PHP=Off
DISPLAY_ERRORS=Off
MEMORY_LIMIT=256M
POST_MAX_SIZE=32M
UPLOAD_MAX_FILESIZE=32M

Visit the GitHub Repository for the full guide.

Tag summary

Content type

Image

Digest

sha256:167783517

Size

42.5 MB

Last updated

3 months ago

docker pull lahiru98s/php-nginx:8.1