Docker image based on the official wordpress:latest with the phpredis extension pre-installed.
Multi-platform: linux/amd64 and linux/arm64.
docker pull ghcr.io/greite/wordpress-redis:latest| Tag | Description |
|---|---|
latest |
Most recent build |
YYYYMMDD |
Date-based immutable tag |
wp-X.Y.Z |
WordPress version |
<sha> |
Git commit SHA |
services:
wordpress:
image: ghcr.io/greite/wordpress-redis:latest
ports:
- "8080:80"
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
depends_on:
- db
- redis
db:
image: mariadb:latest
environment:
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
MYSQL_ROOT_PASSWORD: root
redis:
image: redis:alpineThe phpredis extension is installed and enabled. To use Redis as an object cache in WordPress, install a plugin like Redis Object Cache.
A GitHub Actions workflow runs every 6 hours and rebuilds the image whenever the upstream wordpress:latest digest changes.