This repository contains lightweight Docker images for WordPress with Xdebug, Redis and the PHP Intl extension pre-installed, designed for local development environments.
Multi-architecture images (amd64, arm64) available for various PHP versions:
pattonwebz/local-wordpress-with-xdebug:php8.0-apachepattonwebz/local-wordpress-with-xdebug:php8.1-apachepattonwebz/local-wordpress-with-xdebug:php8.2-apache(also tagged aslatest)pattonwebz/local-wordpress-with-xdebug:php8.3-apachepattonwebz/local-wordpress-with-xdebug:php8.4-apache
Legacy PHP 7 versions are also available but no longer actively maintained:
pattonwebz/local-wordpress-with-xdebug:php7.0-apachepattonwebz/local-wordpress-with-xdebug:php7.1-apachepattonwebz/local-wordpress-with-xdebug:php7.2-apachepattonwebz/local-wordpress-with-xdebug:php7.4-apache
- Lightweight WordPress base images
- Xdebug pre-installed and configured (Xdebug 2.x for PHP 7, Xdebug 3.x for PHP 8+)
- Redis PHP extension
- PHP Intl extension
- Multi-architecture support (amd64, arm64)
docker run -d -p 8080:80 pattonwebz/local-wordpress-with-xdebug:php8.2-apache- For PHP 7.x images: Xdebug 2.x is configured on port 9000
- For PHP 8.x images: Xdebug 3.x is configured on port 9003
The images support both amd64 (standard x86_64) and arm64 architectures, making them compatible with Apple Silicon Macs (M1/M2/M3) and Raspberry Pi devices without any special configuration.
You can build images locally using the provided build.sh script:
# Build for your current architecture
./build.sh
# Build multi-architecture images
./build.sh --multi-archImages are automatically built and pushed to Docker Hub using GitHub Actions:
- On the 1st of each month to incorporate security updates
- Manually triggered builds as needed
This project is open-sourced under the MIT license.