-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose.yml
78 lines (70 loc) · 1.72 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
services:
mysql:
container_name: beetle-mysql
image: mysql:8.0
ports:
- "6612:3306"
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
rabbitmq1:
container_name: beetle-rabbitmq1
image: rabbitmq:3.8-management
ports:
- "5672:5672"
- "15672:15672"
rabbitmq2:
container_name: beetle-rabbitmq2
image: rabbitmq:3.8-management
ports:
- "5673:5672"
- "15673:15672"
consul:
container_name: beetle-consul
image: consul:1.7.2
ports:
- "8500:8500"
command:
agent -dev -node machine -client 0.0.0.0
redis-master:
container_name: beetle-redis-master
image: redis:6.0
ports:
- "6370:6370"
volumes:
- ./tmp/master-dir:/data
command:
redis-server --port 6370
redis-slave:
container_name: beetle-redis-slave
image: redis:6.0
ports:
- "6380:6380"
command: redis-server --port 6380 --slaveof beetle-redis-master 6370
volumes:
- ./tmp/slave-dir:/data
depends_on:
- redis-master
# redis-1:
# container_name: beetle-redis-1
# image: redis:4.0
# ports:
# - "6381:6381"
# volumes:
# - ./tmp/redis-1:/data
# command: redis-server --port 6381--pidfile redis-1.pid --logfile redis-1.log
# redis-2:
# container_name: beetle-redis-2
# image: redis:4.0
# ports:
# - "6382:6382"
# volumes:
# - ./tmp/redis-2:/data
# command: redis-server --port 6382 --pidfile redis-2.pid --logfile redis-2.log
# redis-3:
# container_name: beetle-redis-3
# image: redis:4.0
# ports:
# - "6383:6383"
# volumes:
# - ./tmp/redis-3:/data
# command: redis-server --port 6383 --pidfile redis-3.pid --logfile redis-3.log