Skip to content

Commit

Permalink
docker-compose example for local redis cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
vadimonus committed Jan 18, 2025
1 parent ebeae3b commit 5531f2e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,29 @@ services:
ports:
- "6379:6379"
restart: always
# redis-cluster-0:
# image: redis:7.0-alpine
# ports:
# - "7000:7000"
# restart: always
# command: redis-server --port 7000 --appendonly yes --cluster-enabled yes
# redis-cluster-1:
# image: redis:7.0-alpine
# ports:
# - "7001:7001"
# restart: always
# command: redis-server --port 7001 --appendonly yes --cluster-enabled yes
# redis-cluster-2:
# image: redis:7.0-alpine
# ports:
# - "7002:7002"
# restart: always
# command: redis-server --port 7002 --appendonly yes --cluster-enabled yes
# redis-cluster-creator:
# image: redis:7.0-alpine
# depends_on:
# - redis-cluster-0
# - redis-cluster-1
# - redis-cluster-2
# command: sh -c 'redis-cli --cluster create redis-cluster-0:7000 redis-cluster-1:7001 redis-cluster-2:7002 --cluster-replicas 0 --cluster-yes || true'
# restart: no

0 comments on commit 5531f2e

Please sign in to comment.