Last active
June 24, 2017 20:30
-
-
Save mosheka/4122218b8a32f9213c48c1c999c214e8 to your computer and use it in GitHub Desktop.
Elastic stack docker-compose file including Elasticsearch, Logstash and Kibana
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: '2' | |
services: | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:5.4.2 | |
environment: | |
- cluster.name=docker-cluster | |
- bootstrap.memory_lock=true | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
mem_limit: 1g | |
volumes: | |
- esdata1:/usr/share/elasticsearch/data | |
ports: | |
- 9200:9200 | |
networks: | |
- esnet | |
elasticsearch2: | |
image: docker.elastic.co/elasticsearch/elasticsearch:5.4.2 | |
environment: | |
- cluster.name=docker-cluster | |
- bootstrap.memory_lock=true | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
- "discovery.zen.ping.unicast.hosts=elasticsearch1" | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
mem_limit: 1g | |
volumes: | |
- esdata2:/usr/share/elasticsearch/data | |
networks: | |
- esnet | |
kibana: | |
image: docker.elastic.co/kibana/kibana:5.4.2 | |
ports: | |
- 5601:5601 | |
networks: | |
- esnet | |
logstash: | |
image: docker.elastic.co/logstash/logstash:5.4.2 | |
volumes: | |
- /tmp/pipeline:/usr/share/logstash/pipeline/ | |
- /tmp/input:/tmp/input | |
networks: | |
- esnet | |
volumes: | |
esdata1: | |
driver: local | |
esdata2: | |
driver: local | |
networks: | |
esnet: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment