Skip to content

Commit

Permalink
Add optional $REDIS_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
stasadev committed Jul 17, 2024
1 parent cb16896 commit ab6497b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.redis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit ab6497b

Please sign in to comment.