-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
235 lines (226 loc) · 6.32 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
version: '2'
services:
scheduler:
image: elves-scheduler:1.0
container_name: elves_scheduler
networks:
- elves_net
volumes:
- ./conf/elves-center/scheduler:/elves_scheduler/conf:ro
- ./logs/elves-center/scheduler:/elves_scheduler/logs
ports:
- "10101:10101"
# - "11101:11101"
restart: always
links:
- zookeeper01
- zookeeper02
- zookeeper03
- rabbitmq
cron:
image: elves-cron:1.0
container_name: elves_cron
networks:
- elves_net
volumes:
- ./conf/elves-center/cron:/elves_cron/conf:ro
- ./logs/elves-center/cron:/elves_cron/logs
restart: always
links:
- zookeeper01
- zookeeper02
- zookeeper03
- rabbitmq
- mysql
queue:
image: elves-queue:1.0
container_name: elves_queue
networks:
- elves_net
volumes:
- ./conf/elves-center/queue:/elves_queue/conf:ro
- ./logs/elves-center/queue:/elves_queue/logs
restart: always
links:
- zookeeper01
- zookeeper02
- zookeeper03
- rabbitmq
- mysql
openapi:
image: elves-openapi:1.0
container_name: elves_openapi
networks:
- elves_net
volumes:
- ./conf/elves-center/openapi:/elves_openapi/conf:ro
- ./logs/elves-center/openapi:/elves_openapi/logs
ports:
- "8080:80"
restart: always
links:
- zookeeper01
- zookeeper02
- zookeeper03
- rabbitmq
heartbeat:
image: elves-heartbeat:1.0
container_name: elves_heartbeat
networks:
- elves_net
volumes:
- ./conf/elves-center/heartbeat:/elves_heartbeat/conf:ro
- ./logs/elves-center/heartbeat:/elves_heartbeat/logs
restart: always
ports:
- "11102:11102"
links:
- zookeeper01
- zookeeper02
- zookeeper03
- rabbitmq
supervisor:
image: elves-supervisor:1.0
container_name: elves_supervisor
networks:
- elves_net
volumes:
- ./conf/elves-center/supervisor:/elves_supervisor/conf:ro
- ./logs/elves-center/supervisor:/elves_supervisor/logs
ports:
- "9092:8003"
restart: always
links:
- zookeeper01
- zookeeper02
- zookeeper03
- rabbitmq
- mysql
- vsftp
dashboard:
image: elves-dashboard:1.0
container_name: elves_dashboard
networks:
- elves_net
volumes:
- ./conf/elves-center/dashboard:/elves_dashboard/conf:ro
- ./logs/elves-center/dashboard:/elves_dashboard/logs
ports:
- "8004:8004"
restart: always
links:
- zookeeper01
- zookeeper02
- zookeeper03
- rabbitmq
rabbitmq:
image: docker.io/rabbitmq:3.6.12-management
container_name: rabbitmq
networks:
- elves_net
# expose:
# - "15672"
ports:
- "15672:15672"
restart: always
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=1q2w3e4r
mysql:
image: docker.io/mysql:5.7
container_name: mysql
hostname: mysql_host
restart: always
networks:
- elves_net
volumes:
- ./storage/mysql/datadir:/var/lib/mysql
- ./storage/mysql/elves-database:/elves-database
expose:
- "3306"
environment:
MYSQL_ROOT_PASSWORD: 1q2w3e4r
zookeeper01:
image: docker.io/zookeeper:3.4
container_name: zookeeper01
restart: always
networks:
- elves_net
expose:
- "2181"
environment:
ZOO_MY_ID: 1
ZOO_SERVERS: server.1=zookeeper01:2888:3888 server.2=zookeeper02:2888:3888 server.3=zookeeper03:2888:3888
zookeeper02:
image: docker.io/zookeeper:3.4
container_name: zookeeper02
restart: always
networks:
- elves_net
expose:
- "2181"
environment:
ZOO_MY_ID: 2
ZOO_SERVERS: server.1=zookeeper01:2888:3888 server.2=zookeeper02:2888:3888 server.3=zookeeper03:2888:3888
zookeeper03:
image: docker.io/zookeeper:3.4
container_name: zookeeper03
restart: always
networks:
- elves_net
expose:
- "2181"
environment:
ZOO_MY_ID: 3
ZOO_SERVERS: server.1=zookeeper01:2888:3888 server.2=zookeeper02:2888:3888 server.3=zookeeper03:2888:3888
# pureftp:
# image: docker.io/stilliard/pure-ftpd:hardened
# container_name: pureftp
# restart: always
# networks:
# - elves_net
# ports:
# - "21:21"
# - "30000-30009:30000-30009"
# volumes:
# - ./conf/pureftp/www:/home/ftpusers/www
# - ./conf/pureftp/password:/etc/pure-ftpd/passwd
# - ./logs/pureftp:/var/log/pure-ftpd
# environment:
# ADDED_FLAGS: -O w3c:/var/log/pure-ftpd/transfer.log
# PUBLICHOST: localhost
# command:
# /bin/bash -c "
# /run.sh -c 30 -C 10 -l puredb:/etc/pure-ftpd/pureftpd.pdb -E -j -R
# "
vsftp:
image: centos-vsftp:1.0
container_name: vsftp
restart: always
networks:
- elves_net
ports:
- "21:21"
command:
/bin/bash -c "
/etc/init.d/vsftpd start && tail -f /var/log/dracut.log
"
volumes:
- ./storage/vsftp/vsftpd.conf:/etc/vsftpd/vsftpd.conf:ro
- ./storage/vsftp/data:/data/elves/ftp
nginx:
image: docker.io/nginx:1.12
container_name: nginx
restart: always
networks:
- elves_net
ports:
- "80:80"
volumes:
- ./conf/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./conf/nginx/conf.d:/etc/nginx/conf.d
- ./storage/vsftp/data:/data/ftpdata
- ./logs/nginx:/var/log/nginx
networks:
elves_net:
driver: bridge