Merge branch '2.3.x'

This commit is contained in:
Antoine Nguyen
2025-03-26 14:49:29 +01:00
13 changed files with 125 additions and 42 deletions
+25
View File
@@ -0,0 +1,25 @@
services:
redis-master:
image: redis:7-alpine
redis-slave:
image: redis:7-alpine
command: redis-server --slaveof redis-master 6379
depends_on:
- redis-master
redis-sentinel:
image: redis:7-alpine
depends_on:
- redis-master
- redis-slave
ports:
- "26379:26379"
command: >
sh -c 'echo "bind 0.0.0.0" > /etc/sentinel.conf &&
echo "sentinel monitor mymaster redis-master 6379 2" >> /etc/sentinel.conf &&
echo "sentinel resolve-hostnames yes" >> /etc/sentinel.conf &&
echo "sentinel down-after-milliseconds mymaster 10000" >> /etc/sentinel.conf &&
echo "sentinel failover-timeout mymaster 10000" >> /etc/sentinel.conf &&
echo "sentinel parallel-syncs mymaster 1" >> /etc/sentinel.conf &&
redis-sentinel /etc/sentinel.conf'