diff --git a/README.md b/README.md index 33d5f6b..a860166 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,11 @@ This repository allows you to quickly install Redis into a [DDEV](https://ddev.r 1. `ddev get ddev/ddev-redis` 2. `ddev restart` +Using DDEV v1.23.4+, you can select a different Redis version with: + +1. `ddev get ddev/ddev-redis --environment="REDIS_VERSION=7"` +2. `ddev restart` + ## Explanation This Redis recipe for [DDEV](https://ddev.readthedocs.io) installs a [`.ddev/docker-compose.redis.yaml`](docker-compose.redis.yaml) using the `redis` Docker image. diff --git a/docker-compose.redis.yaml b/docker-compose.redis.yaml index 94f2ecb..a2e6612 100644 --- a/docker-compose.redis.yaml +++ b/docker-compose.redis.yaml @@ -2,7 +2,7 @@ services: redis: container_name: ddev-${DDEV_SITENAME}-redis - image: redis:6-bullseye + image: redis:${REDIS_VERSION:6-bullseye} # These labels ensure this service is discoverable by ddev. labels: com.ddev.site-name: ${DDEV_SITENAME}