Skip to content

Instantly share code, notes, and snippets.

@ashrafuzzaman
Last active April 17, 2019 18:19
Show Gist options
  • Save ashrafuzzaman/495abc0a43b4ae1f2978f5f3244fea25 to your computer and use it in GitHub Desktop.
Save ashrafuzzaman/495abc0a43b4ae1f2978f5f3244fea25 to your computer and use it in GitHub Desktop.
A docker composer with elasticsearch and kibana
version: '2.2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.3.0
container_name: es
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata:/usr/share/elasticsearch/data
ports:
- 9200:9200
kibana:
image: docker.elastic.co/kibana/kibana:6.3.0
ports:
- 5601:5601
depends_on:
- elasticsearch
environment:
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
volumes:
esdata:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment