Last active
August 26, 2018 09:03
-
-
Save cinhtau/d6f923898f838224a9d580341e435f01 to your computer and use it in GitHub Desktop.
docker-compose files for elastic stack
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.2' | |
services: | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.0 | |
container_name: elasticsearch | |
environment: | |
- cluster.name=docker-cluster | |
- bootstrap.memory_lock=true | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
volumes: | |
- esdata1:/usr/share/elasticsearch/data | |
ports: | |
- 9200:9200 | |
networks: | |
- esnet | |
elasticsearch2: | |
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.0 | |
container_name: elasticsearch2 | |
environment: | |
- cluster.name=docker-cluster | |
- bootstrap.memory_lock=true | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
- "discovery.zen.ping.unicast.hosts=elasticsearch" | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
volumes: | |
- esdata2:/usr/share/elasticsearch/data | |
networks: | |
- esnet | |
volumes: | |
esdata1: | |
driver: local | |
esdata2: | |
driver: local | |
networks: | |
esnet: |
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.0' | |
services: | |
elasticsearch1: | |
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.0 | |
container_name: elasticsearch1 | |
environment: | |
- cluster.name=docker-cluster | |
- bootstrap.memory_lock=true | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m -Des.scripting.exception_for_missing_value=true" | |
- xpack.security.enabled=false | |
- xpack.ml.enabled=false | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
volumes: | |
- esdata1:/usr/share/elasticsearch/data | |
ports: | |
- 9200:9200 | |
networks: | |
- esnet | |
elasticsearch2: | |
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.0 | |
container_name: elasticsearch2 | |
environment: | |
- cluster.name=docker-cluster | |
- bootstrap.memory_lock=true | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m -Des.scripting.exception_for_missing_value=true" | |
- "discovery.zen.ping.unicast.hosts=elasticsearch1" | |
- xpack.security.enabled=false | |
- xpack.ml.enabled=false | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
volumes: | |
- esdata2:/usr/share/elasticsearch/data | |
networks: | |
- esnet | |
kibana: | |
image: docker.elastic.co/kibana/kibana:6.4.0 | |
container_name: kibana | |
environment: | |
- ELASTICSEARCH_URL=http://elasticsearch1:9200 | |
restart: always | |
ports: | |
- 5601:5601 | |
networks: | |
- esnet | |
depends_on: | |
- elasticsearch1 | |
- elasticsearch2 | |
volumes: | |
esdata1: | |
driver: local | |
esdata2: | |
driver: local | |
networks: | |
esnet: |
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: | |
kibana: | |
image: docker.elastic.co/kibana/kibana-oss:6.4.0 | |
environment: | |
SERVER_NAME: localhost | |
ELASTICSEARCH_URL: http://0.0.0.0:9200 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment