Skip to content

Instantly share code, notes, and snippets.

@shunkino
Last active November 6, 2018 01:55
Show Gist options
  • Save shunkino/29ffd63af78287c81ce2131d46bb0cb4 to your computer and use it in GitHub Desktop.
Save shunkino/29ffd63af78287c81ce2131d46bb0cb4 to your computer and use it in GitHub Desktop.
Elasticsearch cluster docker-compose for my work. Use ES 5.6.9
version: '2.2'
services:
kibana:
image: docker.elastic.co/kibana/kibana:5.6.9
container_name: kibana
volumes:
- ./kibana.yml:/usr/share/kibana/config/kibana.yml
ports:
- 5601:5601
networks:
- pcap-analysis
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.9
container_name: elasticsearch
environment:
- cluster.name=docker-cluster
- xpack.security.enabled=false
- bootstrap.memory_lock=true
- "indices.fielddata.cache.size=75%"
- "discovery.zen.minimum_master_nodes=1"
- "ES_HEAP_SIZE:16g"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata1:/usr/share/elasticsearch/data
- ./elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
ports:
- 9200:9200
networks:
- pcap-analysis
elasticsearch2:
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.9
container_name: elasticsearch2
environment:
- cluster.name=docker-cluster
- xpack.security.enabled=false
- bootstrap.memory_lock=true
- "discovery.zen.ping.unicast.hosts=elasticsearch"
- "ES_HEAP_SIZE:8g"
- "indices.fielddata.cache.size:75%"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata2:/usr/share/elasticsearch/data
networks:
- pcap-analysis
elasticsearch3:
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.9
container_name: elasticsearch3
environment:
- cluster.name=docker-cluster
- xpack.security.enabled=false
- bootstrap.memory_lock=true
- "discovery.zen.ping.unicast.hosts=elasticsearch"
- "ES_HEAP_SIZE:8g"
- "indices.fielddata.cache.size:75%"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata3:/usr/share/elasticsearch/data
networks:
- pcap-analysis
elasticsearch4:
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.9
container_name: elasticsearch4
environment:
- cluster.name=docker-cluster
- xpack.security.enabled=false
- bootstrap.memory_lock=true
- "discovery.zen.ping.unicast.hosts=elasticsearch"
- "ES_HEAP_SIZE:8g"
- "indices.fielddata.cache.size:75%"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata4:/usr/share/elasticsearch/data
networks:
- pcap-analysis
volumes:
esdata1:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/mnt/es_storage/esdata1'
esdata2:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/mnt/es_storage/esdata2'
esdata3:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/mnt/es_storage/esdata3'
esdata4:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/mnt/es_storage/esdata4'
networks:
pcap-analysis:
external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment