-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (54 loc) · 1.12 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
version: '3'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.2.1
ports:
- "9200:9200"
- "9300:9300"
volumes:
- es:/usr/share/elasticsearch/data
networks:
- db
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.zen.minimum_master_nodes=1"
logging:
driver: "json-file"
options:
max-size: "50m"
max-file: "10"
healthcheck:
test: "curl --silent --fail localhost:9200/_cluster/health?wait_for_status=yellow&timeout=50s || exit 1"
interval: 1m30s
timeout: 50s
retries: 5
kibana:
image: docker.elastic.co/kibana/kibana:6.2.1
ports:
- "5601:5601"
logging:
driver: "json-file"
options:
max-size: "50m"
max-file: "10"
networks:
- db
depends_on:
- elasticsearch
environment:
LOGGING_QUIET: "true"
mongo:
image: 'mongo:3.6'
ports:
- '27017:27017'
networks:
- db
volumes:
- 'mongo:/usr/share/mongodb/data'
volumes:
es:
driver: local
mongo:
driver: local
networks:
db: