This image extends the wp-php-fpm image to include tools useful for initializing, running and maintaining a WordPress installation. It can be deployed as part of a Kubernetes based installation of WordPress. This image also includes 10up's snapshots tool.
7.0
,7.1
,7.2
,7.3
,7.4
,8.0
,8.1
, '8.2'
This image runs just php-fpm and expects that files are located at /var/www/html
. They can be mounted or copied there using an init container. Running this image might look like this:
docker run -d --name wp-services \
-v /var/www/html:/var/www/html
10up/wp-services
This image is configured with MSMTP for handling email. It can only be configured to talk to an even smarter smart host meaning it cannot be configured with authentication of any sort. To configure MSMTP pass the following environment variables
MAILER_HOST=<your mailer host>
MAILER_PORT=<your mailer hosts port>
The entrypoint script will then configure MSMTP properly.
This image uses GitHub actions. For it to work you must create an environment called Build and then create the following variables:
IMAGE_NAME
- The name of the image. For example, 10up sets this value to 10up/wp-services
. You must set this to your own Docker hub namespace.
DOCKERHUB_USERNAME
- The username for the Docker hub account you wish to push images to.
DOCKERHUB_TOKEN
- The token to use against your Docker hub account.
BASE_IMAGE
- The base image to build this image from. Typically this is 10up/wp-php-fpm
. If you are also customizing the wp-php-fpm image then setting this variable will ensure wp-services is built from your customized base image.
Active: 10up is actively working on this, and we expect to continue work for the foreseeable future including keeping tested up to the most recent version of WordPress. Bug reports, feature requests, questions, and pull requests are welcome.