-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
134 lines (126 loc) Β· 3.31 KB
/
docker-compose.yml
File metadata and controls
134 lines (126 loc) Β· 3.31 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
version: "3.8"
networks:
confeti-network:
driver: bridge
services:
redis-master:
image: "bitnami/redis:8.0.3"
hostname: redis-master
container_name: redis-master
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_REPLICATION_MODE=master
ports:
- "6379:6379"
volumes:
- redis-master-data:/bitnami/redis/data:rw
restart: unless-stopped
networks:
- confeti-network
redis-slave-1:
image: "bitnami/redis:8.0.3"
hostname: redis-slave-1
container_name: redis-slave-1
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_MASTER_HOST=redis-master
- REDIS_REPLICATION_MODE=slave
ports:
- "6479:6379"
volumes:
- redis-slave-1-data:/bitnami/redis/data:rw
restart: unless-stopped
depends_on:
- redis-master
networks:
- confeti-network
redis-slave-2:
image: "bitnami/redis:8.0.3"
hostname: redis-slave-2
container_name: redis-slave-2
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_MASTER_HOST=redis-master
- REDIS_REPLICATION_MODE=slave
ports:
- "6579:6379"
volumes:
- redis-slave-2-data:/bitnami/redis/data:rw
restart: unless-stopped
depends_on:
- redis-master
- redis-slave-1
networks:
- confeti-network
redis-sentinel-1:
image: "bitnami/redis-sentinel:8.0.3"
hostname: redis-sentinel-1
container_name: redis-sentinel-1
environment:
- REDIS_SENTINEL_DOWN_AFTER_MILLISECONDS=3000
- REDIS_MASTER_HOST=redis-master
- REDIS_MASTER_PORT_NUMBER=6379
- REDIS_MASTER_SET=mymaster
- REDIS_SENTINEL_QUORUM=2
command: >
redis-sentinel /opt/bitnami/redis-sentinel/etc/sentinel.conf
--sentinel announce-ip 127.0.0.1
--sentinel announce-port 26379
depends_on:
- redis-master
- redis-slave-1
- redis-slave-2
ports:
- "26379:26379"
networks:
- confeti-network
redis-sentinel-2:
image: "bitnami/redis-sentinel:8.0.3"
hostname: redis-sentinel-2
container_name: redis-sentinel-2
environment:
- REDIS_SENTINEL_DOWN_AFTER_MILLISECONDS=3000
- REDIS_MASTER_HOST=redis-master
- REDIS_MASTER_PORT_NUMBER=6379
- REDIS_MASTER_SET=mymaster
- REDIS_SENTINEL_QUORUM=2
depends_on:
- redis-master
- redis-slave-1
- redis-slave-2
ports:
- "26380:26379"
command: >
redis-sentinel /opt/bitnami/redis-sentinel/etc/sentinel.conf
--sentinel announce-ip 127.0.0.1
--sentinel announce-port 26380
networks:
- confeti-network
redis-sentinel-3:
image: "bitnami/redis-sentinel:8.0.3"
hostname: redis-sentinel-3
container_name: redis-sentinel-3
environment:
- REDIS_SENTINEL_DOWN_AFTER_MILLISECONDS=3000
- REDIS_MASTER_HOST=redis-master
- REDIS_MASTER_PORT_NUMBER=6379
- REDIS_MASTER_SET=mymaster
- REDIS_SENTINEL_QUORUM=2
depends_on:
- redis-master
- redis-slave-1
- redis-slave-2
ports:
- "26381:26379"
command: >
redis-sentinel /opt/bitnami/redis-sentinel/etc/sentinel.conf
--sentinel announce-ip 127.0.0.1
--sentinel announce-port 26381
networks:
- confeti-network
volumes:
mysql-data:
redis-master-data:
redis-slave-1-data:
redis-slave-2-data:
kafka-data: