-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
63 lines (59 loc) · 1.51 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
version: "3"
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.2
container_name: elasticsearch
environment:
- discovery.type=single-node
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- transport.host=127.0.0.1
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- http.host=0.0.0.0
- http.port=9200
- "http.cors.allow-origin=http://localhost:1358"
- "http.cors.enabled=true"
- "http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization"
- "http.cors.allow-credentials=true"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata:/usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
networks:
- esnet
# use Kibana to visualize and debug data
# http://localhost:5601
kibana:
image: docker.elastic.co/kibana/kibana-oss:6.5.2
container_name: kibana
environment:
SERVER_NAME: kibana-server
ELASTICSEARCH_URL: http://elasticsearch:9200
networks:
- esnet
depends_on:
- elasticsearch
ports:
- "5601:5601"
# use Cerebro to visualize and debug Elasticsearch
# http://localhost:9900/#/overview?host=http:%2F%2Felasticsearch:9200
cerebro:
image: yannart/cerebro:0.8.1
container_name: cerebro
networks:
- esnet
ports:
- "9900:9000"
depends_on:
- elasticsearch
volumes:
esdata:
driver: local
networks:
esnet:
driver: bridge