A ready-to-use Docker environment for running WordPress (PHP 8.1) with ionCube and SourceGuardian loaders pre-installed, plus a wide range of helpful PHP extensions and CLI tools.
Built and maintained by BaseMax © 2025, MIT Licensed
- PHP Composer
- WordPress with PHP 7.4, 8.1, 8.2, 8.3, 8.4 (custom Dockerfile)
- ionCube Loader and SourceGuardian auto-installed
- Common PHP extensions:
mysqli
,pdo_mysql
,intl
,mbstring
,gd
,bcmath
,soap
, etc. - Popular PECL extensions:
redis
- Useful CLI tools:
wp-cli
,htop
,nano
,curl
,git
,ping
, and more - Fully dockerized using
docker-compose
- Includes MariaDB 11 with persistent volumes
git clone https://github.com/BaseMax/docker-wordpress-ioncube-sourceguardian.git
cd docker-wordpress-ioncube-sourceguardian
Copy .env.example
to .env
and fill in your desired credentials:
cp .env.example .env
Edit the .env
file and set your variables:
SERVICE_USER_WORDPRESS=wordpress
SERVICE_PASSWORD_WORDPRESS=your_password
SERVICE_PASSWORD_ROOT=your_root_password
docker compose up
Or run in the background:
docker compose up -d
.
├── Dockerfile # Custom Dockerfile based on wordpress:php8.1
├── docker-compose.yml # Docker Compose setup for WordPress and MariaDB
├── .env.example # Sample environment file
├── LICENSE # MIT License
└── README.md # You are here
Your WordPress container is enhanced with:
- Development & debug tools (
nano
,htop
,screenfetch
,git
, etc.) - PHP extensions via
docker-php-ext-install
and PECL - Auto-download and setup of
wp-cli
- Auto-installation of
ionCube
andSourceGuardian
from: BaseMax/php-installer-ioncube-sourceguardian
MariaDB runs with the following environment variables from .env
:
MYSQL_ROOT_PASSWORD
MYSQL_DATABASE
MYSQL_USER
MYSQL_PASSWORD
Data is persisted to xg4c44cgg8ok0cc4c0k8c448_mariadb-data
volume.
Both services include built-in healthchecks for stability:
- WordPress: via
curl http://127.0.0.1
- MariaDB: via
healthcheck.sh --connect --innodb_initialized
docker login
docker build --build-arg WORDPRESS_PHP_IMAGE=php7.4 -t basemax/wordpress-ioncube-sourceguardian:7.4 .
docker build --build-arg WORDPRESS_PHP_IMAGE=php8.1 -t basemax/wordpress-ioncube-sourceguardian:8.1 .
docker build --build-arg WORDPRESS_PHP_IMAGE=php8.2 -t basemax/wordpress-ioncube-sourceguardian:8.2 .
docker build --build-arg WORDPRESS_PHP_IMAGE=php8.3 -t basemax/wordpress-ioncube-sourceguardian:8.3 .
docker build --build-arg WORDPRESS_PHP_IMAGE=php8.4 -t basemax/wordpress-ioncube-sourceguardian:8.4 .
docker push basemax/wordpress-ioncube-sourceguardian:7.4
docker push basemax/wordpress-ioncube-sourceguardian:8.1
docker push basemax/wordpress-ioncube-sourceguardian:8.2
docker push basemax/wordpress-ioncube-sourceguardian:8.3
docker push basemax/wordpress-ioncube-sourceguardian:8.4
This project is licensed under the MIT License.
© 2025 Max Base