You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 30, 2025. It is now read-only.

8
8
9
9
</div>
10
10
11
11
This repository provides [Redis 7](https://redis.com) container for [DDEV](https://ddev.readthedocs.io/).
12
12
13
-
It is based on [redis:7.0.12-alpine](https://hub.docker.com/layers/library/redis/7.0.12-alpine/images/sha256-336ff85d67e89689913130cd7334d5eb67783d0e94362c6ce76314161aa1f0fd?context=explore) docker image and [DDEV custom compose files](https://ddev.readthedocs.io/en/stable/users/extend/custom-compose-files/)
13
+
It is based on [redis:7-alpine](https://hub.docker.com/_/redis/tags?page=1&name=7) docker image and [DDEV custom compose files](https://ddev.readthedocs.io/en/stable/users/extend/custom-compose-files/)
14
14
15
-
## Comparison to official addon
15
+
## Comparison to **v6** (`ddev/ddev-redis`)
16
16
17
-
There are a lot of differences between [official](https://github.com/ddev/ddev-redis) addon and this one
17
+
There are a lot of differences between [v6](https://github.com/ddev/ddev-redis) addon and this one
Official redis docker image mounts an anonymous volume on `/data` because... reasons. That volume is recreated on every restart. This one mounts the persistence directory on `/data` and names it according to the project name, and gives it a proper label. This way, each DDEV project has it's own data volume, and data can persist accordingly
31
-
32
-

30
+
Official redis docker container mounts an anonymous volume on `/data` because... reasons. That volume is recreated on every restart. This one mounts the persistence directory on `/data` and names it according to the project name, and gives it a proper label. This way, each DDEV project has it's own data volume, and data can persist accordingly
33
31
34
32
### Persistence?
35
33
36
-
Yes, persistence. This image is configured to persist data on `/data` volume. This means that if you stop the container, and start it again, the data will be there. This is useful for long-term caching of data, and for keeping the cache primed between ddev restarts.
34
+
Yes, persistence. This container is configured to persist data on `/data` volume. This means that if you stop the container, and start it again, the data will be there. This is useful for long-term caching of data, and for keeping the cache primed between ddev restarts.
37
35
38
36
## Installation
39
37
40
38
```
41
-
$ ddev get oblakstudio/ddev-redis-7
39
+
$ ddev get ddev/ddev-redis-7
42
40
$ ddev restart
43
41
```
44
42
@@ -47,21 +45,11 @@ $ ddev restart
47
45
> If needed, you can auth with a username and password.
48
46
> Username is `redis` as well.
49
47
50
-
51
48
## Configuration
52
49
53
-
### Redis Version
54
-
You can change the redis version by defining an environment variable using an `.env` file in the .ddev folder, or by exporting it in your shell.
55
-
56
-
```bash
57
-
export DDEV_REDIS_VERSION="7.2"
58
-
```
59
-
### Redis Server
60
-
61
50
Redis configuration files are split in the `.ddev/redis/conf` folder, you can modify them as you wish.
0 commit comments