Sign inSign up

emcniece/wordpress

By emcniece

Updated over 4 years ago

From WordPress, extended with Nginx Helper and Redis Object Cache support.

Image
0

3.6K

emcniece/wordpress repository overview

emcniece/wordpress

Docker Hub: https://hub.docker.com/r/emcniece/wordpress/

From WordPress, extended with Nginx Helper and Redis Object Cache support.

Inherits regular setup from the WordPress Docker image.

PHP-FPM only - requires a partner Nginx container to forward traffic to port 9000.

The docker-compose.yml file injects 2 variables into wp-config.php:

WPFPM_WP_REDIS_HOST: redis # Name of the Redis container
WPFPM_RT_WP_NGINX_HELPER_CACHE_PATH: "/tmp/cache" # Set in wp-nginx.conf

Any environment variables prefixed with WPFPM_ will be injected into wp-config.php during each container startup. Warning: this means that wp-config.php is regenerated each restart using the provided environment variables.

Quick Run

If you want to use the standalone FPM (port 9000) image:

docker run -td \
  -v ./html:/var/www/html \
  emcniece/wordpress:4-php7.1-fpm-alpine

If you want to run a full web-accessible stack (Nginx, WP-FPM, MySQL, Redis):

docker-compose up -d

Tag summary

Content type

Image

Digest

Size

113.6 MB

Last updated

over 4 years ago

docker pull emcniece/wordpress