This repository allows you to quickly install Redis into a DDEV project using just ddev get ddev/ddev-redis.
ddev get ddev/ddev-redisddev restart
This Redis recipe for DDEV installs a .ddev/docker-compose.redis.yaml using the redis Docker image.
Persistence is disabled by default (see redis.conf), follow the config instructions to enable it, or switch to https://github.com/ddev/ddev-redis-7 where it is enabled by default.
- The Redis instance will listen on TCP port 6379 (the Redis default).
- Configure your application to access Redis on the host:port
redis:6379. - To reach the Redis CLI interface, run
ddev redis-clito begin a session. You can also run Redis CLI commands directly on the command-line, e.g.,ddev redis-cli INFO.
Contributed and maintained by @hussainweb based on the original ddev-contrib recipe by @gormus
Co-maintained by @stasadev