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

Commit c3deaa2

Browse files
authored
Merge pull request #22 from ddev/feat/migration
Migration changes
2 parents db51ed4 + 6158cc5 commit c3deaa2

File tree

9 files changed

+5999
-5697
lines changed

9 files changed

+5999
-5697
lines changed

.yarn/install-state.gz

-413 KB
Binary file not shown.

.yarn/releases/yarn-3.6.1.cjs

Lines changed: 0 additions & 874 deletions
This file was deleted.

.yarnrc.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

README.md

Lines changed: 16 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,41 @@
22

33
# ddev-redis-7 - Redis 7 container for DDEV
44

5-
[![GitHub release (with filter)](https://img.shields.io/github/v/release/oblakstudio/ddev-redis-7)](https://github.com/oblakstudio/ddev-redis-7/releases)
6-
[![Tests](https://github.com/oblakstudio/ddev-redis-7/actions/workflows/cron_tests.yml/badge.svg)](https://github.com/oblakstudio/ddev-redis-7/actions/workflows/cron_tests.yml)
5+
[![GitHub release (with filter)](https://img.shields.io/github/v/release/ddev/ddev-redis-7)](https://github.com/ddev/ddev-redis-7/releases)
6+
[![Tests](https://github.com/ddev/ddev-redis-7/actions/workflows/cron_tests.yml/badge.svg)](https://github.com/ddev/ddev-redis-7/actions/workflows/cron_tests.yml)
77
![project is maintained](https://img.shields.io/maintenance/yes/2024.svg)
88

99
</div>
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.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/)
1414

15-
## Comparison to official addon
15+
## Comparison to **v6** (`ddev/ddev-redis`)
1616

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
1818

19-
| Feature | ddev/ddev-redis | oblakstudio/ddev-redis-7 |
20-
| ----------------- | ---------------- | ------------------------ |
21-
| Maximum Memory | Unlimited | 512Mb |
22-
| Persistence | No | **Yes** |
23-
| Redis Version | 6.2.5 | 7.x |
24-
| Image Size | 112.9Mb | 14.38Mb |
25-
| Anonymous Volumes | On every restart | **NO** |
26-
| Optimized config | No | **Yes** |
19+
| Feature | ddev/ddev-redis | ddev/ddev-redis-7 |
20+
| ----------------- | ---------------- | ----------------- |
21+
| Maximum Memory | Unlimited | 512Mb |
22+
| Persistence | No | **Yes** |
23+
| Redis Version | 6.2.5 | 7.2.1 |
24+
| Image Size | ~40Mb | ~11Mb |
25+
| Anonymous Volumes | On every restart | **NO** |
26+
| Optimized config | No | **Yes** |
2727

2828
### Anonymous volumes - Wait, what?
2929

30-
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-
![Anonymous volume in action](images/anon-volume.jpg)
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
3331

3432
### Persistence?
3533

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.
3735

3836
## Installation
3937

4038
```
41-
$ ddev get oblakstudio/ddev-redis-7
39+
$ ddev get ddev/ddev-redis-7
4240
$ ddev restart
4341
```
4442

@@ -47,21 +45,11 @@ $ ddev restart
4745
> If needed, you can auth with a username and password.
4846
> Username is `redis` as well.
4947
50-
5148
## Configuration
5249

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-
6150
Redis configuration files are split in the `.ddev/redis/conf` folder, you can modify them as you wish.
6251
Otherwise, plugin just works out of the box.
6352

64-
6553
## Commands
6654

6755
Addon exposes the following commands

docker-compose.redis.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,26 @@ volumes:
88
services:
99
redis:
1010
container_name: ddev-${DDEV_SITENAME}-redis
11-
image: redis:${DDEV_REDIS_VERSION:-7}-alpine
11+
hostname: ddev-${DDEV_SITENAME}-minio
12+
image: redis:7.2-alpine
1213
command: /etc/redis/conf/redis.conf
1314
volumes:
1415
- ".:/mnt/ddev_config"
1516
- "./redis:/etc/redis/conf"
1617
- "redis:/data"
18+
expose:
19+
- 6379
20+
networks:
21+
- default
22+
deploy:
23+
resources:
24+
limits:
25+
cpus: "2"
26+
memory: "768M"
27+
reservations:
28+
cpus: "1"
29+
memory: "512M"
30+
restart: "no"
1731
labels:
1832
com.ddev.site-name: ${DDEV_SITENAME}
1933
com.ddev.approot: $DDEV_APPROOT

images/anon-volume.jpg

-48.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)