ddev-redis
ddev-redis copied to clipboard
How to use Redis 8 with ddev-redis
Is there an existing issue for this?
- [x] I have searched the existing issues
Is your feature request related to a problem?
Redis 7 is not fully open source.
Describe your solution
Try to use Redis 8 instead to maintain open source compat
Describe alternatives
Use a DDEV valkey add-on instead (and Valkey in QA and Prod).
Additional context
Redis 8 goes back to using a fully open source BSD license. Would you consider supporting the redis 8 docker container?
Thank you.
Hi @apotek,
The default config looks compatible for me:
ddev add-on get ddev/ddev-redis
ddev redis-backend redis:8
ddev restart
And Valkey is already supported in the same way.
https://github.com/ddev/ddev-redis#swappable-redis-backends
TODO: Add test coverage for redis:8 and redis:8-alpine.
If you're asking us to change the default from 7 to 8, it's probably too early, I would wait for more bugfix releases.
If you're asking us to change the default from 7 to 8, it's probably too early, I would wait for more bugfix releases.
Thank you. Yes, I agree it's probably too early. When I made the feature request, I didn't understand that the add on's docker-compose file had changed.
In the past it was:
container_name: ddev-${DDEV_SITENAME}-redis
image: redis:6
So I assumed we needed a redis:8 image.
Then I noticed that it could be overwritten either with a .env.redis file or other means of setting the REDIS_DOCKER_IMAGE env var.
So I was able to move forward with this in any case. Thank you for your responsiveness.