-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (56 loc) · 1.11 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
version: '3'
services:
redis-sentinel:
build: .
volumes:
- ./:/root/redis
working_dir: /root/redis/redis-sentinel
command: 'bash run.sh'
ports:
- "7000:7000"
- "7001:7001"
- "7002:7002"
- "26379:26379"
- "26380:26380"
- "26381:26381"
networks:
mynet:
ipv4_address: 172.25.1.102
redis-cluster:
build: .
volumes:
- ./:/root/redis
working_dir: /root/redis/redis-cluster
command: 'bash run.sh'
ports:
- "7000:7000"
- "7001:7001"
- "7002:7002"
- "7003:7003"
- "7004:7004"
- "7005:7005"
networks:
mynet:
ipv4_address: 172.25.1.103
ruby-redis:
build: .
volumes:
- ./:/root/redis
working_dir: /root/redis/ruby-redis
command: 'bash run.sh'
ports:
- "8000:8000"
- "8001:8001"
- "8002:8002"
- "8003:8003"
- "8004:8004"
- "8005:8005"
networks:
mynet:
ipv4_address: 172.25.1.104
networks:
mynet:
driver: bridge
ipam:
config:
- subnet: 172.25.1.0/24