-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
141 lines (136 loc) · 3.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
version: '3'
services:
dashboard:
container_name: dashboard
build:
context: ./go/
dockerfile: Dockerfile-dashboard
ports:
- "8080:8080"
environment:
MQHOST: "activemq"
MQPORT: "61613"
MQUSERNAME: "admin"
MQPASSWORD: "admin"
server:
container_name: server
build:
context: ./go/
dockerfile: Dockerfile-server
ports:
- "8081:8080"
environment:
DBNAME: "buffup"
DBHOST: "mysql"
DBPORT: "3306"
DBUSER: "buffup"
DBPASS: "buffup"
REDISHOSTS: "redis-node-0:6379,redis-node-1:6380,redis-node-2:6381,redis-node-3:6382,redis-node-4:6383,redis-node-5:6384"
MQHOST: "activemq"
MQPORT: "61613"
MQUSERNAME: "admin"
MQPASSWORD: "admin"
mysql:
container_name: database
image: mysql:5.7.12
ports:
- 3306:3306
- 3316:3306
environment:
MYSQL_DATABASE: buffup
MYSQL_USER: buffup
MYSQL_PASSWORD: buffup
MYSQL_ROOT_PASSWORD: buffup
volumes:
- my-sql:/var/lib/mysql
activemq:
image: rmohr/activemq:5.15.9-alpine
container_name: activemq
ports:
- 8161:8161
- 61613:61613
volumes:
- ./activemq.xml:/opt/activemq/conf/activemq.xml
redis-node-0:
image: docker.io/bitnami/redis-cluster:5.0-debian-10
ports:
- '6379:6379'
volumes:
- redis-cluster_data-0:/bitnami/redis/data
environment:
- 'ALLOW_EMPTY_PASSWORD=yes'
- 'REDIS_NODES=redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5'
redis-node-1:
image: docker.io/bitnami/redis-cluster:5.0-debian-10
ports:
- '6380:6379'
volumes:
- redis-cluster_data-1:/bitnami/redis/data
environment:
- 'ALLOW_EMPTY_PASSWORD=yes'
- 'REDIS_NODES=redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5'
redis-node-2:
image: docker.io/bitnami/redis-cluster:5.0-debian-10
ports:
- '6381:6379'
volumes:
- redis-cluster_data-2:/bitnami/redis/data
environment:
- 'ALLOW_EMPTY_PASSWORD=yes'
- 'REDIS_NODES=redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5'
redis-node-3:
image: docker.io/bitnami/redis-cluster:5.0-debian-10
ports:
- '6382:6379'
volumes:
- redis-cluster_data-3:/bitnami/redis/data
environment:
- 'ALLOW_EMPTY_PASSWORD=yes'
- 'REDIS_NODES=redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5'
redis-node-4:
image: docker.io/bitnami/redis-cluster:5.0-debian-10
ports:
- '6383:6379'
volumes:
- redis-cluster_data-4:/bitnami/redis/data
environment:
- 'ALLOW_EMPTY_PASSWORD=yes'
- 'REDIS_NODES=redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5'
redis-node-5:
image: docker.io/bitnami/redis-cluster:5.0-debian-10
ports:
- '6384:6379'
volumes:
- redis-cluster_data-5:/bitnami/redis/data
environment:
- 'ALLOW_EMPTY_PASSWORD=yes'
- 'REDIS_NODES=redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5'
redis-cluster-init:
image: docker.io/bitnami/redis-cluster:5.0-debian-10
depends_on:
- redis-node-0
- redis-node-1
- redis-node-2
- redis-node-3
- redis-node-4
- redis-node-5
environment:
- 'ALLOW_EMPTY_PASSWORD=yes'
- 'REDIS_CLUSTER_REPLICAS=1'
- 'REDIS_NODES=redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5'
- 'REDIS_CLUSTER_CREATOR=yes'
volumes:
my-sql:
driver: local
redis-cluster_data-0:
driver: local
redis-cluster_data-1:
driver: local
redis-cluster_data-2:
driver: local
redis-cluster_data-3:
driver: local
redis-cluster_data-4:
driver: local
redis-cluster_data-5:
driver: local