forked from codingexplained/complete-guide-to-elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (51 loc) · 1.57 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
version: '2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.4.0
container_name: elasticsearch_docker
environment:
- cluster.name=es-docker-cluster
- node.name=es-docker-node
- node.master=true
- node.data=true
- node.ml=false
- network.host=0.0.0.0
- xpack.monitoring.enabled=false
- xpack.security.enabled=false
- xpack.ml.enabled=false
- xpack.watcher.enabled=false
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
volumes:
- ./data/elasticsearch:/usr/share/elasticsearch/data
# If you want to use a custom configuration file, simply uncomment
# the below and place a file named elasticsearch.yml in this directory.
#- ./elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
ports:
- 9200:9200
kibana:
image: docker.elastic.co/kibana/kibana:5.4.0
container_name: kibana_docker
environment:
- SERVER_HOST=0.0.0.0
- ELASTICSEARCH_URL=http://elasticsearch:9200
- ELASTICSEARCH_USERNAME=changethis
- ELASTICSEARCH_PASSWORD=changethis
- XPACK_SECURITY_ENABLED=false
- XPACK_MONITORING_ENABLED=false
- XPACK_REPORTING_ENABLED=false
- XPACK_ML_ENABLED=false
volumes:
- ./data/kibana/data:/usr/share/kibana/data
- ./data/kibana/optimize:/usr/share/kibana/optimize
ports:
- 5601:5601
links:
- elasticsearch
depends_on:
- elasticsearch