@@ -24,13 +24,19 @@ services:
24
24
- all
25
25
26
26
replica :
27
- image : ${REDIS_IMAGE:-redis :7.4.1}
27
+ image : ${REDIS_IMAGE:-redislabs/client-libs-test :7.4.1}
28
28
container_name : redis-replica
29
29
depends_on :
30
30
- redis
31
- command : redis-server --replicaof redis 6379 --protected-mode no --save ""
31
+ environment :
32
+ - TLS_ENABLED=no
33
+ - REDIS_CLUSTER=no
34
+ - PORT=6380
35
+ command : ${REDIS_EXTRA_ARGS:---enable-debug-command yes --replicaof redis 6379 --protected-mode no --save ""}
32
36
ports :
33
- - 6380:6379
37
+ - 6380:6380
38
+ volumes :
39
+ - " ./dockers/replica:/redis/work"
34
40
profiles :
35
41
- replica
36
42
- all-stack
@@ -58,45 +64,22 @@ services:
58
64
- all
59
65
60
66
sentinel :
61
- image : ${REDIS_IMAGE:-redis :7.4.1}
67
+ image : ${REDIS_IMAGE:-redislabs/client-libs-test :7.4.1}
62
68
container_name : redis-sentinel
63
69
depends_on :
64
70
- redis
65
- entrypoint : " redis-sentinel /redis.conf --port 26379"
71
+ environment :
72
+ - REDIS_CLUSTER=no
73
+ - NODES=3
74
+ - PORT=26379
75
+ command : ${REDIS_EXTRA_ARGS:---sentinel}
66
76
ports :
67
77
- 26379:26379
68
- volumes :
69
- - " ./dockers/sentinel.conf:/redis.conf"
70
- profiles :
71
- - sentinel
72
- - all-stack
73
- - all
74
-
75
- sentinel2 :
76
- image : ${REDIS_IMAGE:-redis:7.4.1}
77
- container_name : redis-sentinel2
78
- depends_on :
79
- - redis
80
- entrypoint : " redis-sentinel /redis.conf --port 26380"
81
- ports :
82
78
- 26380:26380
83
- volumes :
84
- - " ./dockers/sentinel.conf:/redis.conf"
85
- profiles :
86
- - sentinel
87
- - all-stack
88
- - all
89
-
90
- sentinel3 :
91
- image : ${REDIS_IMAGE:-redis:7.4.1}
92
- container_name : redis-sentinel3
93
- depends_on :
94
- - redis
95
- entrypoint : " redis-sentinel /redis.conf --port 26381"
96
- ports :
97
79
- 26381:26381
98
80
volumes :
99
- - " ./dockers/sentinel.conf:/redis.conf"
81
+ - " ./dockers/sentinel.conf:/redis/config-default/redis.conf"
82
+ - " ./dockers/sentinel:/redis/work"
100
83
profiles :
101
84
- sentinel
102
85
- all-stack
0 commit comments