Skip to content
This repository was archived by the owner on May 30, 2025. It is now read-only.

Commit 04f1e0a

Browse files
authored
fix: make the add-on work with DDEV v1.23.0 (#28)
* Service should mount ddev-global-cache * Update README.md * Fix error from docker-compose in DDEV v1.23.0
1 parent 820e15e commit 04f1e0a

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@
1010

1111
This repository provides [Redis 7](https://redis.com) container for [DDEV](https://ddev.readthedocs.io/).
1212

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/)
13+
It is based on [redis:7.2-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/)
1414

15-
## Comparison to **v6** (`ddev/ddev-redis`)
15+
## Comparison to **v6** ([`ddev/ddev-redis`](https://github.com/ddev/ddev-redis))
1616

17-
There are a lot of differences between [v6](https://github.com/ddev/ddev-redis) addon and this one
17+
There are a lot of differences between v6 addon and this one
1818

1919
| Feature | ddev/ddev-redis | ddev/ddev-redis-7 |
2020
| ----------------- | ---------------- | ----------------- |
2121
| Maximum Memory | Unlimited | 512Mb |
22-
| Persistence | No | **Yes** |
23-
| Redis Version | 6.2.5 | 7.2.1 |
22+
| Persistence | Optional | **Yes** |
23+
| Redis Version | 6.x.y | 7.2.x |
2424
| Image Size | ~40Mb | ~11Mb |
25-
| Anonymous Volumes | On every restart | **NO** |
25+
| Anonymous Volumes | No | No |
2626
| Optimized config | No | **Yes** |
2727

2828
### Anonymous volumes - Wait, what?

docker-compose.redis.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ services:
1313
command: /etc/redis/conf/redis.conf
1414
volumes:
1515
- ".:/mnt/ddev_config"
16+
- "ddev-global-cache:/mnt/ddev-global-cache"
1617
- "./redis:/etc/redis/conf"
1718
- "redis:/data"
1819
expose:
@@ -22,10 +23,10 @@ services:
2223
deploy:
2324
resources:
2425
limits:
25-
cpus: "2"
26+
cpus: "2.5"
2627
memory: "768M"
2728
reservations:
28-
cpus: "1"
29+
cpus: "1.5"
2930
memory: "512M"
3031
restart: "no"
3132
labels:

0 commit comments

Comments
 (0)