Skip to content

Commit

Permalink
Remove sentinel redis from local setup
Browse files Browse the repository at this point in the history
  • Loading branch information
krsoninikhil committed Jul 3, 2024
1 parent 66daf0a commit 5d268b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 45 deletions.
33 changes: 3 additions & 30 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ services:
discovery.type: single-node
xpack.security.enabled: false
ES_JAVA_OPTS: -Xms512m -Xmx2g

cassandra:
image: cassandra:2.1
ports:
Expand All @@ -17,17 +18,14 @@ services:
- 7199:7199
- 9042:9042
- 9160:9160
# scylla:
# image: scylladb/scylla:5.4
# ports:
# - 9042:9042

zookeeper:
image: zookeeper
ports:
- 2181:2181
restart: always

redis-master:
redis:
image: redis:6.2.14
ports:
- 6379:6379
Expand All @@ -36,28 +34,3 @@ services:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_PASSWORD=redis
- REDIS_DATABASES=16

redis-slave:
image: redis:6.2.14
command: ["redis-server", "--slaveof", "redis-master", "6379"]
ports:
- 6380:6379
depends_on:
- redis-master

sentinel:
image: redis:6.2.14
command: ["redis-sentinel", "/etc/redis/sentinel.conf"]
ports:
- 26379:26379
environment:
- SENTINEL_DOWN_AFTER=5000
- SENTINEL_FAILOVER=500
- SENTINEL_QUORUM=2
volumes:
- ./sentinel.conf:/etc/redis/sentinel.conf
links:
- redis-master
depends_on:
- redis-master
- redis-slave
15 changes: 0 additions & 15 deletions sentinel.conf

This file was deleted.

0 comments on commit 5d268b0

Please sign in to comment.