-
Notifications
You must be signed in to change notification settings - Fork 0
/
redis7.yml
62 lines (58 loc) · 1.52 KB
/
redis7.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
version: "3"
services:
redis:
profiles: ["all", "master-datacenter"]
container_name: redis
image: bitnami/redis:7.0.15
environment:
- ALLOW_EMPTY_PASSWORD=yes
ports:
- "6379:6379"
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
interval: 5s
retries: 10
start_period: 2s
timeout: 10s
redis-datacenter-1:
profiles: ["all", "slave-datacenter"]
container_name: redis-datacenter-1
image: bitnami/redis:7.0.15
environment:
- ALLOW_EMPTY_PASSWORD=yes
ports:
- "6381:6379"
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
interval: 5s
retries: 10
start_period: 2s
timeout: 10s
redis-datacenter-2:
profiles: ["all", "slave-datacenter"]
container_name: redis-datacenter-2
image: bitnami/redis:7.0.15
environment:
- ALLOW_EMPTY_PASSWORD=yes
ports:
- "6382:6379"
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
interval: 5s
retries: 10
start_period: 2s
timeout: 10s
wait_redis:
profiles: ["all", "master-datacenter"]
image: hello-world:linux
depends_on:
redis:
condition: service_healthy
wait_redis_slaves:
profiles: ["all", "slave-datacenter"]
image: hello-world:linux
depends_on:
redis-datacenter-1:
condition: service_healthy
redis-datacenter-2:
condition: service_healthy