[bitnami/wordpress-nginx] Release 6.4.2-debian-11-r15 (#54861)

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
Bitnami Bot
2024-01-18 03:34:51 +01:00
committed by GitHub
parent a727e70c5a
commit 140b5d88b8
3 changed files with 69 additions and 85 deletions

View File

@@ -7,10 +7,10 @@ ARG TARGETARCH
LABEL com.vmware.cp.artifact.flavor="sha256:1e1b4657a77f0d47e9220f0c37b9bf7802581b93214fff7d1bd2364c8bf22e8e" \
org.opencontainers.image.base.name="docker.io/bitnami/minideb:bullseye" \
org.opencontainers.image.created="2024-01-12T16:23:56Z" \
org.opencontainers.image.created="2024-01-18T01:55:54Z" \
org.opencontainers.image.description="Application packaged by VMware, Inc" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.ref.name="6.4.2-debian-11-r14" \
org.opencontainers.image.ref.name="6.4.2-debian-11-r15" \
org.opencontainers.image.title="wordpress-nginx" \
org.opencontainers.image.vendor="VMware, Inc." \
org.opencontainers.image.version="6.4.2"
@@ -29,7 +29,7 @@ RUN mkdir -p /tmp/bitnami/pkg/cache/ ; cd /tmp/bitnami/pkg/cache/ ; \
"php-8.2.14-1-linux-${OS_ARCH}-debian-11" \
"nginx-1.25.3-2-linux-${OS_ARCH}-debian-11" \
"mysql-client-11.2.2-0-linux-${OS_ARCH}-debian-11" \
"wordpress-6.4.2-14-linux-${OS_ARCH}-debian-11" \
"wordpress-6.4.2-15-linux-${OS_ARCH}-debian-11" \
"render-template-1.0.6-5-linux-${OS_ARCH}-debian-11" \
) ; \
for COMPONENT in "${COMPONENTS[@]}"; do \

View File

@@ -27,6 +27,6 @@
"arch": "amd64",
"distro": "debian-11",
"type": "NAMI",
"version": "6.4.2-14"
"version": "6.4.2-15"
}
}

View File

@@ -9,8 +9,7 @@
## TL;DR
```console
curl -LO https://raw.githubusercontent.com/bitnami/containers/main/bitnami/wordpress-nginx/docker-compose.yml
docker-compose up
docker run --name wordpress-nginx bitnami/wordpress-nginx:latest
```
**Warning**: 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](#environment-variables) section for a more secure deployment.
@@ -64,19 +63,8 @@ docker build -t bitnami/APP:latest .
WordPress requires access to a MySQL or MariaDB database to store information. We'll use the [Bitnami Docker Image for MariaDB](https://github.com/bitnami/containers/tree/main/bitnami/mariadb) for the database requirements.
### Run the application using Docker Compose
The main folder of this repository contains a functional [`docker-compose.yml`](https://github.com/bitnami/containers/blob/main/bitnami/wordpress-nginx/docker-compose.yml) file. Run the application using it as shown below:
```console
curl -sSL https://raw.githubusercontent.com/bitnami/containers/main/bitnami/wordpress-nginx/docker-compose.yml > docker-compose.yml
docker-compose up
```
### Using the Docker Command Line
If you want to run the application manually instead of using `docker-compose`, these are the basic steps you need to run:
#### Step 1: Create a network
```console
@@ -114,6 +102,17 @@ docker run -d --name wordpress \
Access your application at `http://your-ip/`
### Run the application using Docker Compose
```console
curl -sSL https://raw.githubusercontent.com/bitnami/containers/main/bitnami/wordpress-nginx/docker-compose.yml > docker-compose.yml
docker-compose up
```
Please be aware this file has not undergone internal testing. Consequently, we advise its use exclusively for development or testing purposes.
If you detect any issue in the `docker-compose.yaml` file, feel free to report it or contribute with a fix by following our [Contributing Guidelines](https://github.com/bitnami/containers/blob/main/CONTRIBUTING.md).
## 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.
@@ -193,75 +192,60 @@ docker run -d --name wordpress \
### Environment variables
| Name | Description | Default Value | Can be set |
|---------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------|------------|
| `$WORDPRESS_BASE_DIR` | WordPress installation directory. | `${BITNAMI_ROOT_DIR}/wordpress` | |
| `$WORDPRESS_CONF_FILE` | Configuration file for WordPress. | `${WORDPRESS_BASE_DIR}/wp-config.php` | |
| `$WP_CLI_BASE_DIR` | WP-CLI installation directory. | `${BITNAMI_ROOT_DIR}/wp-cli` | |
| `$WP_CLI_BIN_DIR` | WP-CLI directory for binary files. | `${WP_CLI_BASE_DIR}/bin` | |
| `$WP_CLI_CONF_DIR` | WP-CLI directory for configuration files. | `${WP_CLI_BASE_DIR}/conf` | |
| `$WP_CLI_CONF_FILE` | Configuration file for WP-CLI. | `${WP_CLI_CONF_DIR}/wp-cli.yml` | |
| `$WORDPRESS_VOLUME_DIR` | WordPress directory for mounted configuration files. | `${BITNAMI_VOLUME_DIR}/wordpress` | |
| `$WORDPRESS_DATA_TO_PERSIST` | Files to persist relative to the WordPress installation directory. To provide multiple values, separate them with a whitespace. | `wp-config.php wp-content` | &check; |
| `$WORDPRESS_ENABLE_HTTPS` | Whether to enable HTTPS for WordPress by default. | `no` | &check; |
| `$WORDPRESS_BLOG_NAME` | WordPress blog name. | `"User's blog"` | &check; |
| `$WORDPRESS_SCHEME` | Scheme to generate application URLs. Deprecated by `WORDPRESS_ENABLE_HTTPS`. | `http` | &check; |
| `$WORDPRESS_HTACCESS_OVERRIDE_NONE` | Set the Apache `AllowOverride` variable to `None`. All the default directives will be loaded from `/opt/bitnami/wordpress/wordpress-htaccess.conf`. | `yes` | &check; |
| `$WORDPRESS_ENABLE_HTACCESS_PERSISTENCE` | Persist 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` | &check; |
| `$WORDPRESS_RESET_DATA_PERMISSIONS` | Force resetting ownership/permissions on persisted data when initializing, otherwise it assumes the ownership/permissions are correct. Ignored when running as non-root. | `no` | &check; |
| `$WORDPRESS_TABLE_PREFIX` | Table prefix to use in WordPress. | `wp_` | &check; |
| `$WORDPRESS_PLUGINS` | List 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` | &check; |
| `$WORDPRESS_EXTRA_INSTALL_ARGS` | Extra flags to append to the WordPress 'wp core install' command call. | | &check; |
| `$WORDPRESS_EXTRA_CLI_ARGS` | Extra flags to append to all WP-CLI command calls. | | &check; |
| `$WORDPRESS_EXTRA_WP_CONFIG_CONTENT` | Extra configuration to append to wp-config.php during install. | | &check; |
| `$WORDPRESS_SKIP_BOOTSTRAP` | Whether to perform initial bootstrapping for the application. | `no` | &check; |
| `$WORDPRESS_AUTO_UPDATE_LEVEL` | Level of auto-updates to allow for the WordPress core installation. Valid values: `major`, `minor`, `none`. | `none` | &check; |
| `$WORDPRESS_AUTH_KEY` | Value of the AUTH_KEY | | &check; |
| `$WORDPRESS_SECURE_AUTH_KEY` | Value of the SECURE_AUTH_KEY | | &check; |
| `$WORDPRESS_LOGGED_IN_KEY` | Value of the LOGGED_IN_KEY | | &check; |
| `$WORDPRESS_NONCE_KEY` | Value of the NONCE_KEY | | &check; |
| `$WORDPRESS_AUTH_SALT` | Value of the AUTH_SALT | | &check; |
| `$WORDPRESS_SECURE_AUTH_SALT` | Value of the SECURE_AUTH_SALT | | &check; |
| `$WORDPRESS_LOGGED_IN_SALT` | Value of the LOGGED_IN_SALT | | &check; |
| `$WORDPRESS_NONCE_SALT` | Value of the NONCE_SALT | | &check; |
| `$WORDPRESS_ENABLE_REVERSE_PROXY` | Enable WordPress support for reverse proxy headers | `no` | &check; |
| `$WORDPRESS_ENABLE_XML_RPC` | Enable the WordPress XML-RPC endpoint | `no` | &check; |
| `$WORDPRESS_USERNAME` | WordPress user name. | `user` | &check; |
| `$WORDPRESS_PASSWORD` | WordPress user password. | `bitnami` | &check; |
| `$WORDPRESS_EMAIL` | WordPress user e-mail address. | `user@example.com` | &check; |
| `$WORDPRESS_FIRST_NAME` | WordPress user first name. | `UserName` | &check; |
| `$WORDPRESS_LAST_NAME` | WordPress user last name. | `LastName` | &check; |
| `$WORDPRESS_ENABLE_MULTISITE` | Enable WordPress Multisite configuration. | `no` | &check; |
| `$WORDPRESS_MULTISITE_NETWORK_TYPE` | WordPress Multisite network type to enable. Valid values: `subfolder`, `subdirectory`, `subdomain`. | `subdomain` | &check; |
| `$WORDPRESS_MULTISITE_EXTERNAL_HTTP_PORT_NUMBER` | External HTTP port for WordPress Multisite. | `80` | &check; |
| `$WORDPRESS_MULTISITE_EXTERNAL_HTTPS_PORT_NUMBER` | External HTTPS port for WordPress Multisite. | `443` | &check; |
| `$WORDPRESS_MULTISITE_HOST` | WordPress hostname/address. Only used for Multisite installations. | | &check; |
| `$WORDPRESS_MULTISITE_ENABLE_NIP_IO_REDIRECTION` | Whether 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` | &check; |
| `$WORDPRESS_MULTISITE_FILEUPLOAD_MAXK` | Maximum upload file size allowed for WordPress Multisite uploads, in kilobytes. | `81920` | &check; |
| `$WORDPRESS_SMTP_HOST` | WordPress SMTP server host. | | &check; |
| `$WORDPRESS_SMTP_PORT_NUMBER` | WordPress SMTP server port number. | | &check; |
| `$WORDPRESS_SMTP_USER` | WordPress SMTP server user. | | &check; |
| `$WORDPRESS_SMTP_PASSWORD` | WordPress SMTP server user password. | | &check; |
| `$WORDPRESS_SMTP_PROTOCOL` | WordPress SMTP server protocol to use. | | &check; |
| `$WORDPRESS_DEFAULT_DATABASE_HOST` | Default database server host. | `mariadb` | |
| `$WORDPRESS_DEFAULT_DATABASE_HOST` | Default database server host. | `127.0.0.1` | |
| `$WORDPRESS_DATABASE_HOST` | Database server host. | `$WORDPRESS_DEFAULT_DATABASE_HOST` | &check; |
| `$WORDPRESS_DATABASE_PORT_NUMBER` | Database server port. | `3306` | &check; |
| `$WORDPRESS_DATABASE_NAME` | Database name. | `bitnami_wordpress` | &check; |
| `$WORDPRESS_DATABASE_USER` | Database user name. | `bn_wordpress` | &check; |
| `$WORDPRESS_DATABASE_PASSWORD` | Database user password. | | &check; |
| `$WORDPRESS_ENABLE_DATABASE_SSL` | Whether to enable SSL for database connections. | `no` | &check; |
| `$WORDPRESS_VERIFY_DATABASE_SSL` | Whether to verify the database SSL certificate when SSL is enabled for database connections. | `yes` | &check; |
| `$WORDPRESS_DATABASE_SSL_CERT_FILE` | Path to the database client certificate file. | | &check; |
| `$WORDPRESS_DATABASE_SSL_KEY_FILE` | Path to the database client certificate key file. | | &check; |
| `$WORDPRESS_DATABASE_SSL_CA_FILE` | Path to the database server CA bundle file. | | &check; |
| `$WORDPRESS_OVERRIDE_DATABASE_SETTINGS` | Override the database settings in persistence. | `no` | &check; |
| `$PHP_DEFAULT_MEMORY_LIMIT` | Default PHP memory limit. | `512M` | |
| `$PHP_DEFAULT_POST_MAX_SIZE` | Default PHP post_max_size. | `80M` | |
| `$PHP_DEFAULT_UPLOAD_MAX_FILESIZE` | Default PHP upload_max_size. | `80M` | |
| `$WP_CLI_DAEMON_USER` | WP-CLI system user. | `daemon` | |
| `$WP_CLI_DAEMON_GROUP` | WP-CLI system group. | `daemon` | |
#### Customizable environment variables
| Name | Description | Default Value |
|--------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------|
| `WORDPRESS_DATA_TO_PERSIST` | Files to persist relative to the WordPress installation directory. To provide multiple values, separate them with a whitespace. | `wp-config.php wp-content` |
| `WORDPRESS_ENABLE_HTTPS` | Whether to enable HTTPS for WordPress by default. | `no` |
| `WORDPRESS_BLOG_NAME` | WordPress blog name. | `"User's blog"` |
| `WORDPRESS_SCHEME` | Scheme to generate application URLs. Deprecated by `WORDPRESS_ENABLE_HTTPS`. | `http` |
| `WORDPRESS_HTACCESS_OVERRIDE_NONE` | Set the Apache `AllowOverride` variable to `None`. All the default directives will be loaded from `/opt/bitnami/wordpress/wordpress-htaccess.conf`. | `yes` |
| `WORDPRESS_ENABLE_HTACCESS_PERSISTENCE` | Persist 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_PERMISSIONS` | Force 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_PREFIX` | Table prefix to use in WordPress. | `wp_` |
| `WORDPRESS_PLUGINS` | List 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_SKIP_BOOTSTRAP` | Whether to perform initial bootstrapping for the application. | `no` |
| `WORDPRESS_AUTO_UPDATE_LEVEL` | Level of auto-updates to allow for the WordPress core installation. Valid values: `major`, `minor`, `none`. | `none` |
| `WORDPRESS_ENABLE_REVERSE_PROXY` | Enable WordPress support for reverse proxy headers | `no` |
| `WORDPRESS_ENABLE_XML_RPC` | Enable the WordPress XML-RPC endpoint | `no` |
| `WORDPRESS_USERNAME` | WordPress user name. | `user` |
| `WORDPRESS_PASSWORD` | WordPress user password. | `bitnami` |
| `WORDPRESS_EMAIL` | WordPress user e-mail address. | `user@example.com` |
| `WORDPRESS_FIRST_NAME` | WordPress user first name. | `UserName` |
| `WORDPRESS_LAST_NAME` | WordPress user last name. | `LastName` |
| `WORDPRESS_ENABLE_MULTISITE` | Enable WordPress Multisite configuration. | `no` |
| `WORDPRESS_MULTISITE_NETWORK_TYPE` | WordPress Multisite network type to enable. Valid values: `subfolder`, `subdirectory`, `subdomain`. | `subdomain` |
| `WORDPRESS_MULTISITE_EXTERNAL_HTTP_PORT_NUMBER` | External HTTP port for WordPress Multisite. | `80` |
| `WORDPRESS_MULTISITE_EXTERNAL_HTTPS_PORT_NUMBER` | External HTTPS port for WordPress Multisite. | `443` |
| `WORDPRESS_MULTISITE_ENABLE_NIP_IO_REDIRECTION` | Whether 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_MAXK` | Maximum upload file size allowed for WordPress Multisite uploads, in kilobytes. | `81920` |
| `WORDPRESS_DATABASE_HOST` | Database server host. | `$WORDPRESS_DEFAULT_DATABASE_HOST` |
| `WORDPRESS_DATABASE_PORT_NUMBER` | Database server port. | `3306` |
| `WORDPRESS_DATABASE_NAME` | Database name. | `bitnami_wordpress` |
| `WORDPRESS_DATABASE_USER` | Database user name. | `bn_wordpress` |
| `WORDPRESS_ENABLE_DATABASE_SSL` | Whether to enable SSL for database connections. | `no` |
| `WORDPRESS_VERIFY_DATABASE_SSL` | Whether to verify the database SSL certificate when SSL is enabled for database connections. | `yes` |
| `WORDPRESS_OVERRIDE_DATABASE_SETTINGS` | Override the database settings in persistence. | `no` |
#### Read-only environment variables
| Name | Description | Value |
|-----------------------------------|------------------------------------------------------|---------------------------------------|
| `WORDPRESS_BASE_DIR` | WordPress installation directory. | `${BITNAMI_ROOT_DIR}/wordpress` |
| `WORDPRESS_CONF_FILE` | Configuration file for WordPress. | `${WORDPRESS_BASE_DIR}/wp-config.php` |
| `WP_CLI_BASE_DIR` | WP-CLI installation directory. | `${BITNAMI_ROOT_DIR}/wp-cli` |
| `WP_CLI_BIN_DIR` | WP-CLI directory for binary files. | `${WP_CLI_BASE_DIR}/bin` |
| `WP_CLI_CONF_DIR` | WP-CLI directory for configuration files. | `${WP_CLI_BASE_DIR}/conf` |
| `WP_CLI_CONF_FILE` | Configuration file for WP-CLI. | `${WP_CLI_CONF_DIR}/wp-cli.yml` |
| `WORDPRESS_VOLUME_DIR` | WordPress directory for mounted configuration files. | `${BITNAMI_VOLUME_DIR}/wordpress` |
| `WORDPRESS_DEFAULT_DATABASE_HOST` | Default database server host. | `mariadb` |
| `WORDPRESS_DEFAULT_DATABASE_HOST` | Default database server host. | `127.0.0.1` |
| `PHP_DEFAULT_MEMORY_LIMIT` | Default PHP memory limit. | `512M` |
| `PHP_DEFAULT_POST_MAX_SIZE` | Default PHP post_max_size. | `80M` |
| `PHP_DEFAULT_UPLOAD_MAX_FILESIZE` | Default PHP upload_max_size. | `80M` |
| `WP_CLI_DAEMON_USER` | WP-CLI system user. | `daemon` |
| `WP_CLI_DAEMON_GROUP` | WP-CLI system group. | `daemon` |
When you start the WordPress image, you can adjust the configuration of the instance by passing one or more environment variables either on the docker-compose file or on the `docker run` command line. If you want to add a new environment variable: