mirror of
https://github.com/bitnami/containers.git
synced 2026-03-01 15:07:17 +08:00
adds docker-compose-replicaset.yml
This commit is contained in:
23
bitnami/redis/docker-compose-replicaset.yml
Normal file
23
bitnami/redis/docker-compose-replicaset.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
redis-primary:
|
||||
image: 'bitnami/redis:latest'
|
||||
ports:
|
||||
- '6379'
|
||||
environment:
|
||||
- REDIS_REPLICATION_MODE=master
|
||||
- REDIS_PASSWORD=my_password
|
||||
|
||||
redis-secondary:
|
||||
image: 'bitnami/redis:latest'
|
||||
ports:
|
||||
- '6379'
|
||||
depends_on:
|
||||
- redis-primary
|
||||
environment:
|
||||
- REDIS_REPLICATION_MODE=slave
|
||||
- REDIS_MASTER_HOST=redis-primary
|
||||
- REDIS_MASTER_PORT=6379
|
||||
- REDIS_MASTER_PASSWORD=my_password
|
||||
- REDIS_PASSWORD=my_password
|
||||
Reference in New Issue
Block a user