forked from redis/redis-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
109 lines (100 loc) · 2.26 KB
/
docker-compose.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
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
---
version: "3.8"
services:
redis:
image: redis/redis-stack-server:edge
container_name: redis-standalone
ports:
- 6379:6379
environment:
- "REDIS_ARGS=--enable-debug-command yes --enable-module-command yes"
profiles:
- standalone
- sentinel
- replica
- all
replica:
image: redis/redis-stack-server:edge
container_name: redis-replica
depends_on:
- redis
environment:
- "REDIS_ARGS=--replicaof redis 6379"
ports:
- 6380:6379
profiles:
- replica
- all
cluster:
container_name: redis-cluster
build:
context: .
dockerfile: dockers/Dockerfile.cluster
ports:
- 16379:16379
- 16380:16380
- 16381:16381
- 16382:16382
- 16383:16383
- 16384:16384
volumes:
- "./dockers/cluster.redis.conf:/redis.conf:ro"
profiles:
- cluster
- all
stunnel:
image: redisfab/stunnel:latest
depends_on:
- redis
ports:
- 6666:6666
profiles:
- all
- standalone
- ssl
volumes:
- "./dockers/stunnel/conf:/etc/stunnel/conf.d:ro"
- "./dockers/stunnel/keys:/etc/stunnel/keys:ro"
sentinel:
image: redis/redis-stack-server:edge
container_name: redis-sentinel
depends_on:
- redis
environment:
- "REDIS_ARGS=--port 26379"
entrypoint: "/opt/redis-stack/bin/redis-sentinel /redis.conf --port 26379"
ports:
- 26379:26379
volumes:
- "./dockers/sentinel.conf:/redis.conf"
profiles:
- sentinel
- all
sentinel2:
image: redis/redis-stack-server:edge
container_name: redis-sentinel2
depends_on:
- redis
environment:
- "REDIS_ARGS=--port 26380"
entrypoint: "/opt/redis-stack/bin/redis-sentinel /redis.conf --port 26380"
ports:
- 26380:26380
volumes:
- "./dockers/sentinel.conf:/redis.conf"
profiles:
- sentinel
- all
sentinel3:
image: redis/redis-stack-server:edge
container_name: redis-sentinel3
depends_on:
- redis
entrypoint: "/opt/redis-stack/bin/redis-sentinel /redis.conf --port 26381"
ports:
- 26381:26381
volumes:
- "./dockers/sentinel.conf:/redis.conf"
profiles:
- sentinel
- all