Docker Automated build ยท Docker Pulls ยท Docker Stars
Alpine Version: 3.23.0 (Released 2025-12-03)
WordPress Version: latest
PHP Version: 8.4.27
Nginx Version: 1.28.0
This Container image (yobasystems/alpine-php-wordpress) is based on the minimal Alpine Linux ready for running WordPress. Requires external database.
Alpine Linux is a Linux distribution built around musl libc and BusyBox. The image is only 5 MB in size and has access to a package repository that is much more complete than other BusyBox based images. This makes Alpine Linux a great image base for utilities and even production applications.
Read more about Alpine Linux hereโ .
WordPress is an online, open source website creation tool written in PHP. But in non-geek speak, it's probably the easiest and most powerful blogging and website content management system (or CMS) in existence today.
| Architecture | Tags |
|---|---|
amd64, x86_64 | 64-bit Intel/AMD (x86_64/amd64) |
arm64v8, aarch64 | 64-bit ARM (ARMv8/aarch64) |
arm32v7, armhf | 32-bit ARM (ARMv7/armhf) |
| Tag | Description |
|---|---|
:latest | Latest branch based on automatic architecture selection |
:amd64, :x86_64 | amd64 based on latest tag but amd64 architecture |
:aarch64, :arm64v8 | ARMv8 based on latest tag but arm64 architecture |
:armhf, :arm32v7 | ARMv7 based on latest tag but arm32 architecture |
| Version | Docker Image Size (tag) |
|---|---|
/usr/html: Webroot
Make sure you create the folder on the host before starting the container and obtain the correct permissions.
mkdir -p /data/{domain}/html
docker run -e VIRTUAL_HOST={domain}.com,www.{domain}.com \
-v /data/{domain}/html:/usr/html \
-p 80:80 \
yobasystems/alpine-php-wordpress
Example:
mkdir -p /data/yobasystems/html
docker run -e VIRTUAL_HOST=yobasystems.co.uk,www.yobasystems.co.uk \
-v /data/yobasystems/html:/usr/html \
-p 80:80 \
yobasystems/alpine-php-wordpress
The following user and group ID are used; files should be set to this:
100101chown -R 100:101 /data/{domain}/html
Example:
chown -R 100:101 /data/yobasystems/html
Populate /data/{domain}/html with your WordPress files.
The following user and group ID are used; files should be set to this:
100101chown -R 100:101 /data/{domain}/html
This image now includes WP-CLI (wp-cli.org) baked in. It is best to su nginx before executing anything, or else you can potentially compromise your host.
docker exec -it <container_name> bash
su nginx
cd /usr/html
wp-cli core download --locale=en_GB
Edit the wp-config.php file and include the line:
define('WP_REDIS_HOST', 'redis');
The next thing is to install the plugin Redis Object Cache.
If using SSL and running behind a proxy like HAProxy, then the following needs to be added to the wp-config.php file to stop infinite redirects:
define('FORCE_SSL_ADMIN', true);
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
$_SERVER['HTTPS']='on';
The upload limit is 128 Megabytes.
Modify files/php-fpm.conf.
To modify a php.ini variable, simply edit php-fpm.ini and add:
php_flag[variable] = value
Example:
php_flag[display_errors] = on
List of available modules in Alpine Linux; not all these are installed.
In order to install a PHP module, use the following command. Leave out the version number, e.g. -5.6.11-r0.
docker exec <image_id> apk add <pkg_name>
docker restart <image_name>
Example:
docker exec <image_id> apk add php84-soap
docker restart <image_name>
Available modules:
php84-commonphp84-pdo_sqlitephp84-pearphp84-ftpphp84-imapphp84-mysqliphp84-jsonphp84-mbstringphp84-soapphp84-litespeedphp84-socketsphp84-bcmathphp84-opcachephp84-domphp84-zlibphp84-gettextphp84-fpmphp84-intlphp84-opensslphp84-sessionphp84-pdo_mysqlphp84-embedphp84-xmlrpcphp84-wddxphp84-dbaphp84-ldapphp84-xslphp84-exifphp84-pdo_dblibphp84-bz2php84-pdophp84-pspellphp84-sysvmsgphp84-gmpphp84-apache2php84-pdo_odbcphp84-shmopphp84-ctypephp84-phpdbgphp84-enchantphp84-sysvsemphp84-sqlite3php84-odbcphp84-pcntlphp84-calendarphp84-xmlreaderphp84-snmpphp84-zipphp84-posixphp84-iconvphp84-curlphp84-docphp84-gdphp84-xmlphp84-devphp84-cgiphp84-sysvshmphp84-pgsqlphp84-tidyphp84-pdo_pgsqlphp84-pharphp84-mysqlndwordpress:
image: yobasystems/alpine-php-wordpress
environment:
VIRTUAL_HOST: example.co.uk
expose:
- "80"
volumes:
- /data/example/www:/usr/html
restart: always
links:
- mysql:mysql
mysql:
environment:
MYSQL_DATABASE: wordpressdb
MYSQL_PASSWORD: wordpresspass
MYSQL_ROOT_PASSWORD: ''
MYSQL_USER: wordpressuser
image: yobasystems/alpine-mariadb
| PACKAGE NAME | PACKAGE VERSION | VULNERABILITIES |
|---|---|---|
yobasystems/alpine-php-wordpressyobasystems/alpine-php-wordpressyobasystems/alpine-php-wordpressyobasystems/alpine-php-wordpressyobasystems/alpine-php-wordpressContent type
Image
Digest
sha256:22b062bbbโฆ
Size
93.9 MB
Last updated
7 days ago
docker pull jsntwdj/alpine-php8.4.27-wordpress