Sign inSign up

bfren/wordpress

By bfren

Updated 3 days ago

WordPress installed on Alpine Linux, with auto-generated configuration.

Image
0

100K+

bfren/wordpress repository overview

Docker WordPress

GitHub release (latest by date) Docker Pulls Docker Image Size GitHub Workflow Status

Docker Repository - bfren ecosystem

Comes with WordPress en_GB preinstalled - if you want a different locale, use the Dockerfiles and set the WP_LOCALE argument. Ninja Firewall is preinstalled and setup to work in Full WAF mode. WP-WebAuthn is also preinstalled to provide support for passkey authentication.

The required and recommended PHP modules are all installed.

Contents

Ports

  • 80

Volumes

VolumePurpose
/wp-contentwp-content directories and wp-config.php file.

See the Nginx image for other configuration details.

Environment Variables

See the Nginx + PHP image for details of www.conf and php.ini overrides using environment variables.

VariableValuesDescriptionDefault
BF_WP_CLEAN_INSTALL0 or 1Set to 1 to wipe WordPress files and start again (WARNING: YOU WILL LOSE EVERYTHING!).0
BF_WP_CONFIG_ADDITIONALstringAdditional configuration settings to add to the end of wp-config.php - use in conjunction with WP_CONFIG_GENERATE=harden.None
BF_WP_CONFIG_HARDEN0 or 1Default value 1 makes wp-config.php readonly. Value 0 makes it writeable - helpful for plugins that need to write values to it.1
BF_WP_CONFIG_REGENERATE0 or 1Default value 1 generates wp-config.php each time and makes readonly. Value 0 generates if it does not exist but then leaves it alone.harden
BF_WP_DB_NAMEstringDatabase name.None - required if BF_WP_CONFIG_REGENERATE is '1'
BF_WP_DB_USERstringDatabase username.None - required if BF_WP_CONFIG_REGENERATE is '1'
BF_WP_DB_PASSstringDatabase password.None - required if BF_WP_CONFIG_REGENERATE is '1'
BF_WP_DB_HOSTstringDatabase host.None - required if BF_WP_CONFIG_REGENERATE is '1'
BF_WP_DB_CHARSETstringDatabase character set (leave as default if not sure).utf8mb4
BF_WP_DB_COLLATEstringDatabase collation (leave blank if not sure).None
BF_WP_DB_PREFIXstringDatabase table prefix - an underscore will be added automatically.wp
BF_WP_DEBUGtrue or falseWhether or not to enable debug mode.false
BF_WP_DISABLE_MAJOR_UPDATES0 or 1Set to 0 to enable WordPress core major system updates (otherwise they are handled by the image).1
BF_WP_ENABLE_HTTPS_BEHIND_PROXY0 or 1Whether or not to enable HTTPS behind a proxy server.1
BF_WP_INSTALL_NINJAFIREWALL0 or 1Whether or not to install the NinjaFirewall plugin.1
BF_WP_INSTALL_WEBAUTHN0 or 1Whether or not to install the WebAuthn plugin.1
BF_WP_REDIS_HOSTstringSet to enable redis on the specified host.None
BF_WP_REDIS_PORTintegerSet to override the default redis port (6379).None
BF_WP_USE_SYSTEM_CRON0 or 1Set to 0 to use WordPress cron instead of system cron (reduces page performance).1

Helper Functions

FunctionPurposeUsage
wp-cronRuns the WordPress cron - if WP_USE_SYSTEM_CRON is 1, will be run automatically.wp-cron

Nginx Configuration Helpers

The image contains a handful of useful Nginx configuration 'helper' files, which you can find in /overlay/etc/nginx/helpers. They all begin with the prefix 'wp':

HelperDescription
-restrictions.confAdds various security-based restrictions.
-subdirectory.confEnables WordPress to run in a wordpress subdirectory - copy and replace with the name your own subdirectory to use.

Licence

Copyright (c) 2020-2026 bfren (unless otherwise stated)

Tag summary

Content type

Image

Digest

sha256:fb16ae584

Size

149.9 MB

Last updated

3 days ago

docker pull bfren/wordpress:php8.0-wp7.1.1-dev