-
-
Notifications
You must be signed in to change notification settings - Fork 56
/
docker-compose.yml
96 lines (95 loc) · 2.81 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
version: '3.2'
services:
# memcached
memcached-1:
image: memcached
command: -p 22122
ports:
- 22122:22122
memcached-2:
image: memcached
command: -p 22123
ports:
- 22123:22123
memcached-uds:
image: memcached
command: sh -c "test ${HOST_OS} == \"Darwin\" && exit || memcached -s /sockets/limits.memcached.sock -a 777"
volumes:
- type: bind
source: /tmp/
target: /sockets/
# redis sentinel
redis-sentinel-master:
image: redis
command: redis-server --port 6380
ports:
- '6380:6380'
redis-sentinel-slave:
image: redis
depends_on: [redis-sentinel-master]
command: redis-server --port 6381 --slaveof ${HOST_IP} 6380 --slave-announce-ip ${HOST_IP}
ports:
- '6381:6381'
redis-sentinel:
image: 'bitnami/redis-sentinel:latest'
depends_on: [redis-sentinel-slave]
environment:
- REDIS_MASTER_SET=localhost-redis-sentinel
- REDIS_MASTER_HOST=${HOST_IP}
- REDIS_MASTER_PORT_NUMBER=6380
ports:
- '26379:26379'
# cluster
redis-cluster-0:
image: redis
command: redis-server --port 7000 --protected-mode no --cluster-enabled yes --loglevel verbose --cluster-announce-ip ${HOST_IP}
ports:
- '7000:7000'
- '17000:17000'
redis-cluster-1:
image: redis
command: redis-server --port 7001 --protected-mode no --cluster-enabled yes --loglevel verbose --cluster-announce-ip ${HOST_IP}
ports:
- '7001:7001'
- '17001:17001'
redis-cluster-2:
image: redis
command: redis-server --port 7002 --protected-mode no --cluster-enabled yes --loglevel verbose --cluster-announce-ip ${HOST_IP}
ports:
- '7002:7002'
- '17002:17002'
redis-cluster-3:
image: redis
command: redis-server --port 7003 --protected-mode no --cluster-enabled yes --loglevel verbose --cluster-announce-ip ${HOST_IP}
ports:
- '7003:7003'
- '17003:17003'
redis-cluster-4:
image: redis
command: redis-server --port 7004 --protected-mode no --cluster-enabled yes --loglevel verbose --cluster-announce-ip ${HOST_IP}
ports:
- '7004:7004'
- '17004:17004'
redis-cluster-5:
image: redis
command: redis-server --port 7005 --protected-mode no --cluster-enabled yes --loglevel verbose --cluster-announce-ip ${HOST_IP}
ports:
- '7005:7005'
- '17005:17005'
redis-basic:
image: redis
command: redis-server --port 7379
ports:
- '7379:7379'
redis-auth:
image: redis
command: redis-server --port 7389 --requirepass sekret
ports:
- '7389:7389'
redis-uds:
image: redis
command: sh -c "test ${HOST_OS} = \"Darwin\" && exit || redis-server --port 0 --unixsocket /sockets/limits.redis.sock --unixsocketperm 777"
volumes:
- type: bind
source: /tmp/
target: /sockets/