-
Notifications
You must be signed in to change notification settings - Fork 88
/
Copy pathredis.yml
37 lines (34 loc) · 894 Bytes
/
redis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: "3.0"
# See Contribution Guidelines in README. Redis 7.2.4 is the last redis version before the Valkey fork.
services:
SingleNodeRedis:
restart: always
image: redis:${REDIS_VERSION:-7.2.4}
ports:
- "6379:6379"
environment:
- DEBUG=false
command: redis-server --notify-keyspace-events KEA
ReplicaNode:
restart: always
image: redis:${REDIS_VERSION:-7.2.4}
ports:
- "6380:6379"
command: redis-server --replicaof SingleNodeRedis 6379
links:
- SingleNodeRedis:SingleNodeRedis
environment:
- DEBUG=false
RedisCluster:
restart: always
image: grokzen/redis-cluster:${REDIS_VERSION:-7.2.4}
ports:
- "30001:30001"
- "30002:30002"
- "30003:30003"
- "30004:30004"
- "30005:30005"
- "30006:30006"
environment:
- INITIAL_PORT=30001
- DEBUG=false