forked from yeasy/docker-compose-files
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (43 loc) · 1.04 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
# This will start 5 nodes:
# mongo will server as the only member of the cluster
# mongosetup will init mongo as the master node
# elasticsearch will server as the index search db
# kibana will server as the web ui of elasticsearch
# mongo-connector will pipeline mongodb content to the elasticsearch
mongo:
image: mongo:3.0
hostname: mongo
mem_limit: 1024m
environment:
- TZ=Asia/Shanghai
expose:
- "27017"
- "28017"
restart: always
entrypoint: [ "/usr/bin/mongod", "--replSet", "rs", "--smallfiles", "--httpinterface", "--rest" ]
mongosetup:
image: yeasy/mongosetup
mem_limit: 1024m
links:
- mongo:mongo
elasticsearch:
image: elasticsearch:1.7
mem_limit: 1024m
environment:
- TZ=Asia/Shanghai
#volumes:
#- /opt/data/elasticsearch:/usr/share/elasticsearch/data
expose:
- "9200"
- "9300"
kibana:
image: kibana:4.1
ports:
- "5601:5601"
links:
- elasticsearch:elasticsearch
mongoconnector:
image: yeasy/mongo-connector
links:
- elasticsearch:elasticsearch
- mongo:mongo