Last active
February 2, 2019 16:51
-
-
Save glenacota/43fc9a7909fd6377faddb80387cae8fe to your computer and use it in GitHub Desktop.
Docker-compose file to build up an ElasticSearch cluster with 1 node and a Kibana instance. (v6.5.4)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
esnode: | |
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.4 | |
container_name: esnode | |
environment: | |
- node.name=esnode | |
- cluster.name=elastic-cluster | |
- discovery.type=single-node | |
- bootstrap.memory_lock=true | |
- ES_JAVA_OPTS=-Xms512m -Xmx512m | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
volumes: | |
- esnode-data:/usr/share/elasticsearch/data | |
ports: | |
- 9200:9200 | |
networks: | |
- elastic-net | |
kibana: | |
image: docker.elastic.co/kibana/kibana:6.5.4 | |
container_name: kibana | |
environment: | |
- elasticsearch.url=http://elasticsearch:9200 | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
ports: | |
- 5601:5601 | |
networks: | |
- elastic-net | |
links: | |
- esnode:elasticsearch | |
volumes: | |
esnode-data: | |
driver: local | |
networks: | |
elastic-net: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment