|
--- |
|
version: '2' |
|
services: |
|
|
|
elasticsearch: |
|
build: |
|
dockerfile: $PWD/elasticsearch |
|
context: $PWD |
|
args: |
|
- ELASTIC_VERSION=${ELASTIC_VERSION} |
|
environment: |
|
- bootstrap.memory_lock=true |
|
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" |
|
- "xpack.security.enabled=false" |
|
ulimits: |
|
memlock: |
|
soft: -1 |
|
hard: -1 |
|
mem_limit: 1g |
|
volumes: |
|
- esdata1:/usr/share/elasticsearch/data |
|
ports: |
|
- 9200:9200 |
|
|
|
kibana: |
|
image: docker.elastic.co/kibana/kibana:$ELASTIC_VERSION |
|
links: |
|
- elasticsearch |
|
ports: |
|
- 5601:5601 |
|
|
|
volumes: |
|
esdata1: |
|
driver: local |