Sign inSign up

theanother/another-php

By theanother

•Updated about 1 year ago

Hardened Alpine Linux Docker Images for PHP Applications

Image
0

1.5K

theanother/another-php repository overview

A comprehensive collection of production-ready, security-hardened Docker images built on Alpine Linux 3.22, designed for WordPress and Laravel applications with enterprise-grade security features.

Currently, the project supports PHP 7.4 with both nginx-php (full stack) and php (PHP-FPM only) variants. This roadmap outlines the systematic addition of PHP versions 8.0, 8.1, 8.2, 8.3, and 8.4 while maintaining the existing security hardening and multi-architecture support.

Key Features

🔒 Security-First Design

  • Non-root user execution with minimal privileges
  • Comprehensive PHP security hardening (disabled dangerous functions, URL restrictions)
  • Read-only root filesystem capabilities
  • Security headers and access restrictions
  • Minimal attack surface with Alpine Linux base

⚡ Performance Optimized

  • OPcache enabled with optimized settings
  • PHP-FPM with dynamic process management
  • Nginx optimizations with gzip compression and static file caching
  • Multi-architecture support (AMD64 & ARM64)

🛠️ Production Ready

  • Health checks and monitoring built-in
  • Comprehensive logging and error handling
  • s6-overlay for proper process management
  • Automated multi-architecture builds

Available Images

Full Stack (Nginx + PHP-FPM)

  • another-php:7.4-nginx-alpine - Complete web server stack

Standalone-PHP (Microservice)

  • another-php:7.4-alpine

Tag summary

Content type

Image

Digest

sha256:a44f11974…

Size

215.7 MB

Last updated

about 1 year ago

docker pull theanother/another-php:7.4-nginx-alpine-20250919