bitnami/wordpress

Verified Publisher

By VMware

Updated 2 days ago

Bitnami Secure Image for wordpress

Artifact
Image
Content management system
282

100M+

bitnami/wordpress repository overview

Bitnami Secure Image for WordPress

WordPress is the world's most popular blogging and content management platform. Powerful yet simple, everyone from students to global corporations use it to build beautiful, functional websites.

Overview of WordPress Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.

TL;DR

docker run --name wordpress REGISTRY_NAME/bitnami/wordpress:latest

NOTE This quick setup is only intended for development environments. You are encouraged to change the insecure default credentials and check out the available configuration options in the Environment Variables section for a more secure deployment.

How to deploy WordPress in Kubernetes

Deploying Bitnami applications as Helm Charts is the easiest way to get started with our applications on Kubernetes. Read more about the installation in the Bitnami WordPress Chart GitHub repository.

Why use a non-root container?

Non-root container images add an extra layer of security and are generally recommended for production environments. However, because they run as a non-root user, privileged tasks are typically off-limits. Learn more about non-root containers in our docs.

Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags in our documentation page.

You can see the equivalence between the different tags by taking a look at the tags-info.yaml file present in the branch folder, i.e bitnami/ASSET/BRANCH/DISTRO/tags-info.yaml.

Subscribe to project updates by watching the bitnami/containers GitHub repository.

Get this image

The recommended way to get the Bitnami WordPress Docker Image is to pull the prebuilt image from the Docker Hub Registry.

docker pull REGISTRY_NAME/bitnami/wordpress:latest

To use a specific version, you can pull a versioned tag. You can view the list of available versions in the Docker Hub Registry.

docker pull REGISTRY_NAME/bitnami/wordpress:[TAG]

If you wish, you can also build the image yourself by cloning the repository, changing to the directory containing the Dockerfile and executing the docker build command. Remember to replace the APP, VERSION and OPERATING-SYSTEM path placeholders in the example command below with the correct values.

git clone https://github.com/bitnami/containers.git
cd bitnami/APP/VERSION/OPERATING-SYSTEM
docker build -t REGISTRY_NAME/bitnami/APP:latest .

How to use this image

WordPress requires access to a MySQL or MariaDB database to store information. We'll use the Bitnami Docker Image for MariaDB for the database requirements.

Persisting your application

If you remove the container all your data will be lost, and the next time you run the image the database will be reinitialized. To avoid this loss of data, you should mount a volume that will persist even after the container is removed.

For persistence you should mount a directory at the /bitnami/wordpress path. If the mounted directory is empty, it will be initialized on the first run. Additionally you should mount a volume for persistence of the MariaDB data.

To avoid inadvertent removal of volumes, you can mount host directories as data volumes. Alternatively you can make use of volume plugins to host the volume data.

NOTE Because this is a non-root container, the mounted files and directories must have the proper permissions for the UID 1001.

Configuration

The following section describes environment variables and FIPS configuration.

Environment variables

The following tables list the main variables you can set.

Customizable environment variables
NameDescriptionDefault Value
WORDPRESS_DATA_TO_PERSISTFiles to persist relative to the WordPress installation directory. To provide multiple values, separate them with a whitespace.wp-config.php wp-content
WORDPRESS_ENABLE_HTTPSWhether to enable HTTPS for WordPress by default.no
WORDPRESS_BLOG_NAMEWordPress blog name."User's blog"
WORDPRESS_SCHEMEScheme to generate application URLs. Deprecated by WORDPRESS_ENABLE_HTTPS.http
WORDPRESS_HTACCESS_OVERRIDE_NONESet the Apache AllowOverride variable to None. All the default directives will be loaded from /opt/bitnami/wordpress/wordpress-htaccess.conf.yes
WORDPRESS_ENABLE_HTACCESS_PERSISTENCEPersist the custom changes of the htaccess. It depends on the value of WORDPRESS_HTACCESS_OVERRIDE_NONE, when yes it will persist /opt/bitnami/wordpress/wordpress-htaccess.conf if no it will persist /opt/bitnami/wordpress/.htaccess.no
WORDPRESS_RESET_DATA_PERMISSIONSForce resetting ownership/permissions on persisted data when initializing, otherwise it assumes the ownership/permissions are correct. Ignored when running as non-root.no
WORDPRESS_TABLE_PREFIXTable prefix to use in WordPress.wp_
WORDPRESS_PLUGINSList of WordPress plugins to install and activate, separated via commas. Can also be set to all to activate all currently installed plugins, or none to skip.none
WORDPRESS_EXTRA_INSTALL_ARGSExtra flags to append to the WordPress 'wp core install' command call.nil
WORDPRESS_EXTRA_CLI_ARGSExtra flags to append to all WP-CLI command calls.nil
WORDPRESS_EXTRA_WP_CONFIG_CONTENTExtra configuration to append to wp-config.php during install.nil
WORDPRESS_SKIP_BOOTSTRAPWhether to perform initial bootstrapping for the application.no
WORDPRESS_AUTO_UPDATE_LEVELLevel of auto-updates to allow for the WordPress core installation. Valid values: major, minor, none.none
WORDPRESS_AUTH_KEYValue of the AUTH_KEYnil
WORDPRESS_SECURE_AUTH_KEYValue of the SECURE_AUTH_KEYnil
WORDPRESS_LOGGED_IN_KEYValue of the LOGGED_IN_KEYnil
WORDPRESS_NONCE_KEYValue of the NONCE_KEYnil
WORDPRESS_AUTH_SALTValue of the AUTH_SALTnil
WORDPRESS_SECURE_AUTH_SALTValue of the SECURE_AUTH_SALTnil
WORDPRESS_LOGGED_IN_SALTValue of the LOGGED_IN_SALTnil
WORDPRESS_NONCE_SALTValue of the NONCE_SALTnil
WORDPRESS_ENABLE_REVERSE_PROXYEnable WordPress support for reverse proxy headersno
WORDPRESS_ENABLE_XML_RPCEnable the WordPress XML-RPC endpointno
WORDPRESS_USERNAMEWordPress user name.user
WORDPRESS_PASSWORDWordPress user password.bitnami
WORDPRESS_EMAILWordPress user e-mail address.[email protected]
WORDPRESS_FIRST_NAMEWordPress user first name.UserName
WORDPRESS_LAST_NAMEWordPress user last name.LastName
WORDPRESS_ENABLE_MULTISITEEnable WordPress Multisite configuration.no
WORDPRESS_MULTISITE_NETWORK_TYPEWordPress Multisite network type to enable. Valid values: subfolder, subdirectory, subdomain.subdomain
WORDPRESS_MULTISITE_EXTERNAL_HTTP_PORT_NUMBERExternal HTTP port for WordPress Multisite.80
WORDPRESS_MULTISITE_EXTERNAL_HTTPS_PORT_NUMBERExternal HTTPS port for WordPress Multisite.443
WORDPRESS_MULTISITE_HOSTWordPress hostname/address. Only used for Multisite installations.nil
WORDPRESS_MULTISITE_ENABLE_NIP_IO_REDIRECTIONWhether to enable IP address redirection to nip.io wildcard DNS when enabling WordPress Multisite. This is only supported when running on an IP address with subdomain network type.no
WORDPRESS_MULTISITE_FILEUPLOAD_MAXKMaximum upload file size allowed for WordPress Multisite uploads, in kilobytes.81920
WORDPRESS_SMTP_HOSTWordPress SMTP server host.nil
WORDPRESS_SMTP_PORT_NUMBERWordPress SMTP server port number.nil
WORDPRESS_SMTP_USERWordPress SMTP server user.nil
WORDPRESS_SMTP_FROM_EMAILWordPress SMTP from email.${WORDPRESS_SMTP_USER}
WORDPRESS_SMTP_FROM_NAMEWordPress SMTP from name.${WORDPRESS_FIRST_NAME} ${WORDPRESS_LAST_NAME}
WORDPRESS_SMTP_PASSWORDWordPress SMTP server user password.nil
WORDPRESS_SMTP_PROTOCOLWordPress SMTP server protocol to use.nil
WORDPRESS_DATABASE_HOSTDatabase server host.$WORDPRESS_DEFAULT_DATABASE_HOST
WORDPRESS_DATABASE_PORT_NUMBERDatabase server port.3306
WORDPRESS_DATABASE_NAMEDatabase name.bitnami_wordpress
WORDPRESS_DATABASE_USERDatabase user name.bn_wordpress
WORDPRESS_DATABASE_PASSWORDDatabase user password.nil
WORDPRESS_ENABLE_DATABASE_SSLWhether to enable SSL for database connections.no
WORDPRESS_VERIFY_DATABASE_SSLWhether to verify the database SSL certificate when SSL is enabled for database connections.yes
WORDPRESS_DATABASE_SSL_CERT_FILEPath to the database client certificate file.nil
WORDPRESS_DATABASE_SSL_KEY_FILEPath to the database client certificate key file.nil
WORDPRESS_DATABASE_SSL_CA_FILEPath to the database server CA bundle file.nil
WORDPRESS_OVERRIDE_DATABASE_SETTINGSOverride the database settings in persistence.no
Read-only environment variables

| Name | Description | Value

Note: the README for this container is longer than the DockerHub length limit of 25000, so it has been trimmed. The full README can be found at https://techdocs.broadcom.com/us/en/vmware-tanzu/bitnami-secure-images/bitnami-secure-images/services/bsi-app-doc/apps-containers-wordpress-index.html

Tag summary

Content type

Image

Digest

sha256:0b850d052

Size

7.8 kB

Last updated

2 days ago

docker pull bitnami/wordpress:sha256-a0999af3ce89af313b482efd39c966b17a4e42befc3c5298434935792d500723

This week's pulls

Pulls:

62,958

Mar 30 to Apr 5

Bitnami