-
Notifications
You must be signed in to change notification settings - Fork 166
/
docker-compose.yml
40 lines (40 loc) · 1.07 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
version: "3.9"
services:
redis_single:
image: redis:6.0-alpine
hostname: "redis_single"
container_name: "redis_single"
volumes:
- ${workDirectory}/env/redis.conf:/usr/local/etc/redis/redis.conf
ports:
- "6379:6379"
command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
redis_interceptor:
image: redis:6.0-alpine
hostname: "redis_interceptor"
container_name: "redis_interceptor"
ports:
- "6479:6379"
command: ["redis-server"]
redis_flush:
image: redis:6.0-alpine
hostname: "redis_flush"
container_name: "redis_flush"
ports:
- "6279:6379"
command: ["redis-server"]
redis_master:
image: redis:6.0-alpine
hostname: "redis_master"
container_name: "redis_master"
ports:
- 6380:6379
redis_sentinel:
image: redis:6.0-alpine
hostname: "redis_sentinel"
container_name: "redis_sentinel"
ports:
- 26379:26379
command: redis-sentinel /usr/local/etc/redis/sentinel.conf
volumes:
- ${workDirectory}/env/sentinel.conf:/usr/local/etc/redis/sentinel.conf