xampp/httpd)A modular Apache HTTPD image optimized for serving PHP applications via PHP-FPM in the modern XAMPP Docker stack.
Based on the official httpd:2.4 image, this image is pre-configured to act as a frontend for PHP-FPM, utilizing Unix sockets for high-performance inter-container communication.
.php files to the Unix socket at /var/run/php/php-fpm.sock.APP_DOCUMENT_ROOT environment variable to change the served directory without rebuilding the image.mod_rewrite, mod_deflate, mod_expires, and mod_proxy_fcgi enabled by default.X-Forwarded-Proto to set HTTPS=on for PHP applications.X-Forwarded-For headers.www-data, UID 1000) by default.| Variable | Default | Description |
|---|---|---|
APP_DOCUMENT_ROOT | /app/public | The absolute path to the directory containing your index.php. |
Must be used with a PHP-FPM service (like xampp/php) that shares the socket volume.
services:
httpd:
image: xampp/httpd:2.4
volumes:
- .:/app
- php-socket:/var/run/php
labels:
- traefik.enable=true
# ... Traefik labels ...
volumes:
php-socket:
Built on httpd:2.4 (Debian-based). Optimized for use with Traefik or other reverse proxies.
Content type
Image
Digest
sha256:622141b41…
Size
71.6 MB
Last updated
8 months ago
docker pull xampp/httpd