forked from zentity-io/zentity
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (52 loc) · 1.85 KB
/
docker-compose.yml
File metadata and controls
52 lines (52 loc) · 1.85 KB
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: '3'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:${ELASTICSEARCH_VERSION:-7.10.2}
ports:
- "${ES_PORT:-9200}:9200" # http
- "${DEBUGGER_PORT:-5050}:5050" # debugger
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
user: "elasticsearch"
restart: always
volumes:
- ./target/releases/:/plugins
# install all plugins in mounted /plugin directory and start the elasticsearch server
command:
- /bin/bash
- -c
- ls /plugins/*.zip | xargs -n 1 echo 'file://' | tr -d " " | xargs elasticsearch-plugin install --batch && elasticsearch
environment:
- cluster.name=docker-cluster
- network.host=0.0.0.0
# minimum_master_nodes need to be explicitly set when bound on a public IP
# set to 1 to allow single node clusters
# Details: https://github.com/elastic/elasticsearch/pull/17288
- discovery.zen.minimum_master_nodes=1
# Reduce virtual memory requirements, see https://github.com/docker/for-win/issues/5202#issuecomment-637782971
- bootstrap.memory_lock=false
- "ES_JAVA_OPTS=-Xms1500m -Xmx1500m -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0.0.0.0:5050"
- discovery.type=single-node
kibana:
image: docker.elastic.co/kibana/kibana-oss:${KIBANA_VERSION:-7.10.2}
hostname: kibana
links:
- elasticsearch
logging:
driver: none
ports:
- '${KIBANA_PORT:-5601}:5601'
environment:
- server.host=0.0.0.0
- elasticsearch.url=http://elasticsearch:9200
- elasticsearch.requestTimeout=500000
- xpack.security.enabled=false
- xpack.monitoring.enabled=false
- xpack.watcher.enabled=false
- xpack.graph.enabled=false
- xpack.security.useDefaultEsCredentials=true